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:
13 files changed
+489
-65
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user