Cache the Rust build artifacts (#111)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-09-04 11:19:14 +02:00
1 parent ea083fdec2
commit 09c1b77414
1 file changed
+10
+10
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' }}