ci: only test-crates runs from pre-release; drop the Slint excludes
The Slint crates are gone from the workspace, so cargo-test.sh's four --exclude flags were stale; qbz-qt is the only exclusion now (it is the one crate that needs Qt, and the sole consumer of wayland-sys — the reason the workspace test fails on a runner without libwayland-dev). Release workflows write their caches from main only: nothing but test-crates.yml is meant to run from pre-release. cc
This commit is contained in:
3 files changed
+10
-13
No files matched your search
@@ -115,15 +115,16 @@ jobs:
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
# Cache key split by toolchain/profile and NEVER shared with the old
|
||||
# `slint-*` keys. Main-branch caches serve tag runs; pre-release
|
||||
# pre-flights only serve themselves (Actions cache scoping).
|
||||
# `slint-*` keys. Only main writes the cache (it is what serves tag
|
||||
# runs); nothing here runs from pre-release — that branch triggers
|
||||
# test-crates.yml and nothing else.
|
||||
- name: Rust cache
|
||||
uses: Swatinem/rust-cache@v2
|
||||
with:
|
||||
workspaces: crates -> target
|
||||
shared-key: qt-linux-${{ inputs.arch }}
|
||||
cache-on-failure: true
|
||||
save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/pre-release' }}
|
||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||
|
||||
# NEVER `-p qbz`: crates/qbz (the frozen Slint binary) declares the same
|
||||
# bin name in the same target dir and would silently win the file.
|
||||
|
||||
Reference in new issue
Block a user