From cfe20c968b1c99924a3fa5a0cc7aab9a039e9b54 Mon Sep 17 00:00:00 2001 From: kwaroran Date: Fri, 9 Jun 2023 14:29:07 +0900 Subject: [PATCH] [chore] cache build --- .github/workflows/github-actions-builder.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/github-actions-builder.yml b/.github/workflows/github-actions-builder.yml index c1c46f6d..89e54ae3 100644 --- a/.github/workflows/github-actions-builder.yml +++ b/.github/workflows/github-actions-builder.yml @@ -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'