Skip to content

Commit 6e5d8a7

Browse files
committed
ci: split spirv-builder and cargo-gpu into separate jobs
1 parent 74daf07 commit 6e5d8a7

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ ubuntu-24.04, windows-2022, macOS-latest ]
22+
integration: [ "cargo-gpu", "spirv-builder" ]
2223
runs-on: ${{ matrix.os }}
2324
steps:
2425
- uses: actions/checkout@v4
@@ -49,14 +50,14 @@ jobs:
4950
- name: xtask build
5051
run: cd xtask && cargo build
5152
- name: xtask generate
52-
run: cargo xtask generate
53+
run: cargo xtask generate ${{ matrix.integration }}
5354
# no --locked, templates need to generate their lockfile
5455
- name: cargo fetch
55-
run: cargo xtask generate -x "cargo fetch --target $TARGET"
56+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo fetch --target $TARGET"
5657
- name: cargo build
57-
run: cargo xtask generate -x "cargo build"
58+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo build"
5859
- name: cargo test
59-
run: cargo xtask generate -x "cargo nextest run"
60+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo nextest run"
6061

6162
# This allows us to have a single job we can branch protect on, rather than needing
6263
# to update the branch protection rules when the test matrix changes

0 commit comments

Comments
 (0)