mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 11:58:41 +00:00
fix: add arch key to setup-node cached files (#4016)
This commit is contained in:
8
.github/actions/setup-node/action.yml
vendored
8
.github/actions/setup-node/action.yml
vendored
@@ -76,7 +76,7 @@ runs:
|
|||||||
if: ${{ inputs.playwright-install == 'true' }}
|
if: ${{ inputs.playwright-install == 'true' }}
|
||||||
with:
|
with:
|
||||||
path: '~/.cache/ms-playwright'
|
path: '~/.cache/ms-playwright'
|
||||||
key: '${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
|
key: '${{ runner.os }}-${{ runner.arch }}-playwright-${{ steps.playwright-version.outputs.version }}'
|
||||||
# As a fallback, if the Playwright version has changed, try use the
|
# As a fallback, if the Playwright version has changed, try use the
|
||||||
# most recently cached version. There's a good chance that at least one
|
# most recently cached version. There's a good chance that at least one
|
||||||
# of the browser binary versions haven't been updated, so Playwright can
|
# of the browser binary versions haven't been updated, so Playwright can
|
||||||
@@ -86,7 +86,7 @@ runs:
|
|||||||
# date cache, but still let Playwright decide if it needs to download
|
# date cache, but still let Playwright decide if it needs to download
|
||||||
# new binaries or not.
|
# new binaries or not.
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-playwright-
|
${{ runner.os }}-${{ runner.arch }}-playwright-
|
||||||
|
|
||||||
# If the Playwright browser binaries weren't able to be restored, we tell
|
# If the Playwright browser binaries weren't able to be restored, we tell
|
||||||
# paywright to install everything for us.
|
# paywright to install everything for us.
|
||||||
@@ -107,9 +107,9 @@ runs:
|
|||||||
if: ${{ inputs.electron-install == 'true' }}
|
if: ${{ inputs.electron-install == 'true' }}
|
||||||
with:
|
with:
|
||||||
path: 'node_modules/.cache/electron'
|
path: 'node_modules/.cache/electron'
|
||||||
key: '${{ runner.os }}-electron-${{ steps.electron-version.outputs.version }}'
|
key: '${{ runner.os }}-{{ runner.arch }}-electron-${{ steps.electron-version.outputs.version }}'
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-electron-
|
${{ runner.os }}-{{ runner.arch }}-electron-
|
||||||
|
|
||||||
- name: Install Electron binary
|
- name: Install Electron binary
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user