From 0388a1f0655e39f0817cbfbeb5006b85c79528f4 Mon Sep 17 00:00:00 2001 From: Tlntin Date: Sun, 5 Feb 2023 10:06:05 +0800 Subject: [PATCH] add cache for arrch64 when compile in action --- .github/workflows/pake_build_with_cache.yaml | 40 ++++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pake_build_with_cache.yaml b/.github/workflows/pake_build_with_cache.yaml index 514ba64..7b2c08e 100644 --- a/.github/workflows/pake_build_with_cache.yaml +++ b/.github/workflows/pake_build_with_cache.yaml @@ -106,16 +106,16 @@ jobs: steps: - uses: actions/checkout@v3 - - name: rust cache restore - uses: ylemkimon/cache-restore@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - src-tauri/target/ - key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: rust cache restore + uses: ylemkimon/cache-restore@v2 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + src-tauri/target/ + key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }} - uses: uraimo/run-on-arch-action@v2.3.0 name: build native modules using another arch @@ -151,13 +151,13 @@ jobs: curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh bash upload.sh output/*/*.* - - name: rust cache store - uses: actions/cache@v3 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - src-tauri/target/ - key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }} \ No newline at end of file + - name: rust cache store + uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + src-tauri/target/ + key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }} \ No newline at end of file