Skip to content

Commit c3137c8

Browse files
committed
ci: split lint into cargo-gpu and spirv-builder variants
1 parent e2b2ffc commit c3137c8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
test:
17-
name: Test
17+
name: test
1818
strategy:
1919
fail-fast: false
2020
matrix:
@@ -79,7 +79,7 @@ jobs:
7979
[[ "${{ needs.lint.result }}" == "success" ]] || exit 1
8080
8181
xtask-test:
82-
name: xtask test
82+
name: xtask test & lint
8383
runs-on: ubuntu-24.04
8484
steps:
8585
- uses: actions/checkout@v4
@@ -108,7 +108,11 @@ jobs:
108108
run: cd xtask && cargo clippy --all-targets -- -D warnings
109109

110110
lint:
111-
name: Lint
111+
name: lint
112+
strategy:
113+
fail-fast: false
114+
matrix:
115+
integration: [ "cargo-gpu", "spirv-builder" ]
112116
runs-on: ubuntu-24.04
113117
steps:
114118
- uses: actions/checkout@v4
@@ -126,14 +130,14 @@ jobs:
126130
- name: xtask build
127131
run: cd xtask && cargo build
128132
- name: xtask generate
129-
run: cargo xtask generate
133+
run: cargo xtask generate ${{ matrix.integration }}
130134
# no --locked, templates need to generate their lockfile
131135
- name: cargo fetch
132-
run: cargo xtask generate -x "cargo fetch"
136+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo fetch"
133137
- name: fmt
134-
run: cargo xtask generate -x "cargo fmt --all -- --check"
138+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo fmt --all -- --check"
135139
- name: clippy
136-
run: cargo xtask generate -x "cargo clippy --all-targets -- -D warnings"
140+
run: cargo xtask generate ${{ matrix.integration }} -x "cargo clippy --all-targets -- -D warnings"
137141

138142
defaults:
139143
run:

0 commit comments

Comments
 (0)