🐛 Restore rust cache
This commit is contained in:
24
.github/workflows/pake-cli.yaml
vendored
24
.github/workflows/pake-cli.yaml
vendored
@@ -99,8 +99,17 @@ jobs:
|
|||||||
echo "install pake on local"
|
echo "install pake on local"
|
||||||
npm install pake-cli
|
npm install pake-cli
|
||||||
|
|
||||||
- name: rust cache
|
- name: rust cache restore
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: actions/cache/restore@v3
|
||||||
|
id: cache_store
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
node_modules/pake-cli/src-tauri/target/
|
||||||
|
key: ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
||||||
|
|
||||||
- name: build with pake-cli
|
- name: build with pake-cli
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@@ -125,3 +134,14 @@ jobs:
|
|||||||
path: node_modules/pake-cli/output/*
|
path: node_modules/pake-cli/output/*
|
||||||
retention-days: 3
|
retention-days: 3
|
||||||
|
|
||||||
|
- name: rust cache store
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
if: steps.cache_store.outputs.cache-hit != 'true'
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
node_modules/pake-cli/src-tauri/target/
|
||||||
|
key: ${{ inputs.platform }}-cargo-${{ hashFiles('node_modules/pake-cli/src-tauri/Cargo.lock') }}
|
||||||
|
|||||||
25
.github/workflows/pake_build_with_cache.yaml
vendored
25
.github/workflows/pake_build_with_cache.yaml
vendored
@@ -60,8 +60,17 @@ jobs:
|
|||||||
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
|
packages: libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev gnome-video-effects gnome-video-effects-extra
|
||||||
version: 1.1
|
version: 1.1
|
||||||
|
|
||||||
- name: rust cache
|
- name: rust cache restore
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: actions/cache/restore@v3
|
||||||
|
id: cache_store
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: build for Ubuntu
|
- name: build for Ubuntu
|
||||||
if: matrix.os == 'ubuntu-20.04'
|
if: matrix.os == 'ubuntu-20.04'
|
||||||
@@ -88,3 +97,15 @@ jobs:
|
|||||||
artifacts: "output/*/*.*"
|
artifacts: "output/*/*.*"
|
||||||
tag: ${{ inputs.version }}
|
tag: ${{ inputs.version }}
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: rust cache store
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
if: steps.cache_store.outputs.cache-hit != 'true'
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/bin/
|
||||||
|
~/.cargo/registry/index/
|
||||||
|
~/.cargo/registry/cache/
|
||||||
|
~/.cargo/git/db/
|
||||||
|
src-tauri/target/
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|||||||
Reference in New Issue
Block a user