Merge branch 'chunk-streaming-refactor' #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Check | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags-ignore: | |
| - '**' | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository (with submodules) | |
| uses: actions/checkout@v6 | |
| with: | |
| submodules: recursive | |
| - name: Select latest Xcode (Swift 6.2+) | |
| run: | | |
| LATEST_XCODE=$(ls -d /Applications/Xcode*.app | sort -V | tail -1) | |
| echo "Selecting $LATEST_XCODE" | |
| sudo xcode-select -s "$LATEST_XCODE" | |
| swift --version | |
| - name: Install dependencies | |
| run: brew install cmake libomp rust | |
| - name: Set up Ruby (for xcpretty) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.4' | |
| - name: Install xcpretty | |
| run: gem install xcpretty | |
| - name: Make run.sh executable | |
| run: chmod +x ./run.sh | |
| - name: Build with run.sh | |
| run: ./run.sh build | |
| - name: Run unit tests (hostless) | |
| run: | | |
| xcodebuild test -scheme OpenSuperMLX \ | |
| -destination 'platform=macOS,arch=arm64' \ | |
| -derivedDataPath build \ | |
| -clonedSourcePackagesDirPath SourcePackages \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| -only-testing:OpenSuperMLXUnitTests 2>&1 | xcpretty | |
| - name: Run integration tests (hosted) | |
| run: | | |
| xcodebuild test -scheme OpenSuperMLX \ | |
| -destination 'platform=macOS,arch=arm64' \ | |
| -derivedDataPath build \ | |
| -clonedSourcePackagesDirPath SourcePackages \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| -only-testing:OpenSuperMLXTests \ | |
| -skip-testing:OpenSuperMLXTests/BenchmarkTests \ | |
| -skip-testing:OpenSuperMLXTests/JapaneseGarblingRegressionTests \ | |
| -skip-testing:OpenSuperMLXTests/MicrophoneInventoryTests \ | |
| -skip-testing:OpenSuperMLXTests/KeyboardLayoutProviderTests 2>&1 | xcpretty |