add cache for arrch64 when compile in action
This commit is contained in:
40
.github/workflows/pake_build_with_cache.yaml
vendored
40
.github/workflows/pake_build_with_cache.yaml
vendored
@@ -106,16 +106,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: rust cache restore
|
- name: rust cache restore
|
||||||
uses: ylemkimon/cache-restore@v2
|
uses: ylemkimon/cache-restore@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
src-tauri/target/
|
src-tauri/target/
|
||||||
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- uses: uraimo/run-on-arch-action@v2.3.0
|
- uses: uraimo/run-on-arch-action@v2.3.0
|
||||||
name: build native modules using another arch
|
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
|
curl -L https://github.com/probonopd/uploadtool/raw/master/upload.sh --output upload.sh
|
||||||
bash upload.sh output/*/*.*
|
bash upload.sh output/*/*.*
|
||||||
|
|
||||||
- name: rust cache store
|
- name: rust cache store
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.cargo/bin/
|
~/.cargo/bin/
|
||||||
~/.cargo/registry/index/
|
~/.cargo/registry/index/
|
||||||
~/.cargo/registry/cache/
|
~/.cargo/registry/cache/
|
||||||
~/.cargo/git/db/
|
~/.cargo/git/db/
|
||||||
src-tauri/target/
|
src-tauri/target/
|
||||||
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-aarch64-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
Reference in New Issue
Block a user