Precompile spirv-tools binaries #10
Workflow file for this run
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
on: workflow_dispatch | |
name: Precompile spirv-tools binaries | |
jobs: | |
build: | |
name: Build | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-22.04 | |
target: x86_64-unknown-linux-gnu | |
- os: windows-2022 | |
target: x86_64-pc-windows-msvc | |
- os: macOS-13 | |
target: aarch64-apple-darwin | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Mount Bazel cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.bazel/cache | |
key: bazel-cache-${{ runner.os }} | |
- name: Build | |
shell: bash | |
run: cargo run -p package -- ${{ matrix.target }} ~/.bazel/cache | |
- name: Upload | |
id: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.target }}-binaries | |
path: tools/${{ matrix.target }}.tar.zst | |
- run: echo 'Artifact ID is ${{ steps.upload.outputs.artifact-id }}' |