mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-18 16:24:38 +00:00
ci: cache the PhotoCraft test corpora
The gate restores .test-inputs/photocraft/corpus before its setup, keyed on scripts/ci-test-inputs.sh (which holds the PhotoCraft pin), and the setup uses a restored corpus as it is. A hit skips the PhotoCraft checkout and its xtask build: 2:17 of Windows setup, about 1:00 on Linux and macOS. Uses craft-common-actions' new cache-paths, cache-key and cache-key-files inputs.
This commit is contained in:
1 parent
899d6e0302
commit
688c5beba2
2 files changed
+8
No files matched your search
@@ -28,4 +28,7 @@ jobs:
|
||||
linux-env: WGPU_BACKEND=vulkan
|
||||
env: CRAFT_PRINT_REQUIRE_QUEUE=0
|
||||
setup-command: bash scripts/ci-test-inputs.sh
|
||||
cache-paths: .test-inputs/photocraft/corpus
|
||||
cache-key: photocraft-corpus
|
||||
cache-key-files: scripts/ci-test-inputs.sh
|
||||
command: cargo nextest run --workspace --all-features --locked --profile ci
|
||||
@@ -44,6 +44,11 @@ jobs:
|
||||
CRAFT_HOSTILE_DIVISOR=8
|
||||
PROPTEST_CASES=64
|
||||
setup-command: bash scripts/ci-test-inputs.sh
|
||||
# The PhotoCraft corpora, keyed on the script that pins them: a hit skips the PhotoCraft
|
||||
# checkout and its xtask build (1:51 on Windows).
|
||||
cache-paths: .test-inputs/photocraft/corpus
|
||||
cache-key: photocraft-corpus
|
||||
cache-key-files: scripts/ci-test-inputs.sh
|
||||
command: |
|
||||
python3 scripts/test-workspace-concurrency.py
|
||||
python3 scripts/test-workspace-tests.py
|
||||
|
||||
Reference in new issue
Block a user