From 0bca7e7e42e21cca42d8db03a6386e8524364944 Mon Sep 17 00:00:00 2001 From: starknt <1431880400@qq.com> Date: Mon, 25 Nov 2024 10:17:37 +0800 Subject: [PATCH] fix: cache hit path --- .github/workflows/build-and-release.yml | 8 ++++---- .github/workflows/test-and-upload.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 110df14..3c3b73c 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -73,18 +73,18 @@ jobs: - name: Setup electron cahce uses: actions/cache@v4 with: - path: ${{ env.HOME }}/.cache/electron + path: ${{ github.workspace }}/.cache/electron key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + ${{ runner.os }}-electron-cache- - name: Setup electron-builder cahce uses: actions/cache@v4 with: - path: ${{ env.HOME }}/.cache/electron-builder + path: ${{ github.workspace }}/.cache/electron-builder key: ${{ runner.os }}-electron-builder-cache-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-electron-builder-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + ${{ runner.os }}-electron-builder-cache- - name: pnpm install run: | diff --git a/.github/workflows/test-and-upload.yml b/.github/workflows/test-and-upload.yml index 297fed7..0053914 100644 --- a/.github/workflows/test-and-upload.yml +++ b/.github/workflows/test-and-upload.yml @@ -76,18 +76,18 @@ jobs: - name: Setup electron cahce uses: actions/cache@v4 with: - path: ${{ env.HOME }}/.cache/electron + path: ${{ github.workspace }}/.cache/electron key: ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-electron-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + ${{ runner.os }}-electron-cache- - name: Setup electron-builder cahce uses: actions/cache@v4 with: - path: ${{ env.HOME }}/.cache/electron-builder + path: ${{ github.workspace }}/.cache/electron-builder key: ${{ runner.os }}-electron-builder-cache-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | - ${{ runner.os }}-electron-builder-cache-${{ hashFiles('**/pnpm-lock.yaml') }} + ${{ runner.os }}-electron-builder-cache- - name: pnpm install run: |