feat: generic control token filtering for streaming output #1
Workflow file for this run
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 and Release | |
| on: | |
| push: | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build (${{ matrix.config.name }}) | |
| runs-on: ${{ matrix.config.runner }} | |
| strategy: | |
| matrix: | |
| config: | |
| - name: "Apple Silicon" | |
| runner: macos-15 | |
| suffix: "arm64" | |
| - name: "Intel" | |
| runner: macos-15-large | |
| suffix: "x86_64" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer || true | |
| - name: Build | |
| run: | | |
| chmod +x build.sh | |
| ./build.sh -c release | |
| - name: Run tests | |
| run: swift test | |
| continue-on-error: true | |
| - name: Package | |
| run: | | |
| chmod +x Scripts/package.sh | |
| ./Scripts/package.sh "${GITHUB_REF_NAME#v}" | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: NovaMLX-${{ matrix.config.suffix }} | |
| path: dist/ | |
| release: | |
| name: Create Release | |
| needs: build | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer || true | |
| - name: Build release | |
| run: | | |
| chmod +x build.sh | |
| ./build.sh -c release | |
| - name: Package | |
| run: | | |
| chmod +x Scripts/package.sh | |
| ./Scripts/package.sh "${GITHUB_REF_NAME#v}" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| dist/NovaMLX-*.tar.gz | |
| dist/NovaMLX-*.dmg | |
| generate_release_notes: true |