From 5a70985bcc320785ba179052842dcbc23a52cf5d Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Wed, 4 Sep 2024 11:18:43 +0200 Subject: [PATCH] Improved caching --- .github/workflows/build-and-release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 5c140e54..c875ef2e 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -576,14 +576,15 @@ jobs: cd runtime # Try to restore the Rust cache from previous build: - mkdir -p /rust-cache + mkdir -p /rust-cache/target rm -fr target - mv /rust-cache/target 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: - mv target /rust-cache/target + rm -fr /rust-cache/target + mv target /rust-cache - name: Debug if: ${{ env.SKIP != 'true' }}