[chore] cache build
This commit is contained in:
19
.github/workflows/github-actions-builder.yml
vendored
19
.github/workflows/github-actions-builder.yml
vendored
@@ -38,6 +38,25 @@ jobs:
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
- name: Get pnpm store directory
|
||||
id: pnpm-cache
|
||||
shell: bash
|
||||
run: |
|
||||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
name: Setup pnpm cache
|
||||
with:
|
||||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
- uses: actions/cache@v3
|
||||
name: Setup rust cache
|
||||
with:
|
||||
path: src-tauri/target/
|
||||
key: ${{ runner.os }}-rust-cache
|
||||
restore-keys: |
|
||||
${{ runner.os }}-rust-cache
|
||||
- name: install frontend dependencies
|
||||
run: pnpm install --no-frozen-lockfile # change this to npm or pnpm depending on which one you use
|
||||
- if: matrix.platform == 'ubuntu-latest'
|
||||
|
||||
Reference in New Issue
Block a user