watcher-py: explicitly build the three most common arches on linux #754
This file contains 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: macOS | |
on: | |
push: | |
branches: [ release, next ] | |
pull_request: | |
branches: [ release, next ] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
permissions: | |
id-token: write | |
contents: read | |
attestations: write | |
strategy: | |
fail-fast: false | |
matrix: | |
target-double: | |
- apple-darwin | |
target-platform: | |
- this | |
os: | |
- macos-13 | |
- macos-14 | |
steps: | |
- uses: lukka/[email protected] | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/cache@v4 | |
with: | |
path: out | |
key: cache.${{matrix.target-double}}.${{matrix.os}} | |
- uses: chetan/git-restore-mtime-action@v2 | |
- run: tool/build --verbose --no-run | |
- run: tool/bundle-artifacts minimal-artifacts/${{matrix.target-double}} ${{matrix.target-platform}} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{matrix.target-double}}.built-on-${{matrix.os}} | |
path: minimal-artifacts/${{matrix.target-double}}.tar.gz | |
- uses: actions/attest-build-provenance@v1 | |
with: | |
subject-path: minimal-artifacts | |
- run: tool/test/all | |
- run: tool/build --verbose --no-build --no-run-perf | |
- run: tool/build --verbose --no-build --no-run-unit | |
- run: ls -al out/${{matrix.target-platform}}/Debug | |
- run: ls -al out/${{matrix.target-platform}}/Release |