Skip to content

Commit d08ce6e

Browse files
committed
ci: make "test" prep deps cache for compiletests and difftests
1 parent bb7f0d1 commit d08ce6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ jobs:
8080
OUT_DIR: "target/debug/ci/out"
8181
run: cargo run -p example-runner-wgpu-builder --no-default-features --features "use-installed-tools"
8282

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

0 commit comments

Comments
 (0)