Cache the Rust build artifacts

This commit is contained in:
Thorsten Sommer 2024-09-04 11:03:42 +02:00
parent ea083fdec2
commit aa3b9fa2b5
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -574,8 +574,17 @@ jobs:
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
source "$HOME/.cargo/env"
cd runtime
# Try to restore the Rust cache from previous build:
mkdir -p /rust-cache
rm -fr target
mv /rust-cache/target target
cargo tauri build --target aarch64-unknown-linux-gnu --bundles deb
# Save the built libraries for the next job:
mv target /rust-cache/target
- name: Debug
if: ${{ env.SKIP != 'true' }}
run: |