Skip to content

Commit 6441dc7

Browse files
committed
ci: fix prep cache being useless due to weird feature selection
1 parent 056199e commit 6441dc7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,14 @@ jobs:
7878
OUT_DIR: "target/debug/ci/out"
7979
run: cargo run -p example-runner-wgpu-builder --no-default-features --features "use-installed-tools"
8080

81-
- name: prep cache for compiletest and difftest
82-
run: cargo build -p compiletests -p difftests --release --no-default-features --features "use-installed-tools"
81+
# Our test runners select very different features for dependencies, so they need to be two separate builds.
82+
# * compiletests depends on `rustc_codegen_spirv` directly with features `use-installed-tools`
83+
# * difftests depends on `spirv-builder` with no features, which excludes `rustc_codegen_spirv` entirely.
84+
# The individual difftest crates depend on it and run the spirv compile, never the test runner itself.
85+
- name: prep cache for other jobs
86+
run: |
87+
cargo build -p compiletests --release --no-default-features --features "use-installed-tools"
88+
cargo build -p difftests --release --no-default-features --features "use-installed-tools"
8389
8490
8591
android:

0 commit comments

Comments
 (0)