fix(build): invalidate native objects when the Qt SDK changes

Fingerprint Qt SDK headers for C++ cache inputs and share bounded debug/release startup gates between local tooling and CI.

cx
This commit is contained in:
vicrodh committed 2026-09-06 03:53:05 -06:00
1 parent 088fac93c6
commit 6794e15257
13 files changed
+489 -65

No files matched your search

+2 -2
View File
@@ -141,7 +141,7 @@ jobs:
uses: Swatinem/rust-cache@v2
with:
workspaces: crates -> target
shared-key: qt-linux-${{ inputs.arch }}
shared-key: qt-linux-${{ inputs.arch }}-${{ env.QT_VERSION }}
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/pre-release' }}
@@ -168,7 +168,7 @@ jobs:
"$QT_ROOT_DIR/libexec/moc" --version || true
"$QT_ROOT_DIR/libexec/qmlcachegen" --version || true
"$QMAKE" -query QT_VERSION
cargo build --release --manifest-path crates/Cargo.toml -p qbz-qt
python3 scripts/qt-cargo.py build --release --manifest-path crates/Cargo.toml -p qbz-qt
cp crates/target/release/qbz qbz-unstripped
strip -o qbz crates/target/release/qbz
ls -la qbz qbz-unstripped