Cache the Rust build artifacts (#111)

This commit is contained in:
Thorsten Sommer 2024-09-04 11:19:14 +02:00 committed by GitHub
parent ea083fdec2
commit 09c1b77414
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -574,7 +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/target
rm -fr target
cp -Rp /rust-cache/target target
cargo tauri build --target aarch64-unknown-linux-gnu --bundles deb
# Save the built libraries for the next job:
rm -fr /rust-cache/target
mv target /rust-cache
- name: Debug
if: ${{ env.SKIP != 'true' }}