Skip to content

Commit 6819d13

Browse files
committed
use different cache for different arch runners
1 parent 404a4dd commit 6819d13

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
uses: actions/cache@v4
2727
with:
2828
path: node_modules
29-
key: yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
29+
key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
3030
restore-keys: |
31-
yarn-modules-${{ runner.os }}-
31+
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
3232
3333
- name: Run unit testing
3434
run: make test_unit
@@ -51,9 +51,9 @@ jobs:
5151
uses: actions/cache@v4
5252
with:
5353
path: node_modules
54-
key: yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
54+
key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
5555
restore-keys: |
56-
yarn-modules-${{ runner.os }}-
56+
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
5757
5858
- name: Run build
5959
run: make build
@@ -99,9 +99,9 @@ jobs:
9999
uses: actions/cache@v4
100100
with:
101101
path: node_modules
102-
key: yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
102+
key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
103103
restore-keys: |
104-
yarn-modules-${{ runner.os }}-
104+
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
105105
106106
- name: Download Build files
107107
uses: actions/download-artifact@v4

.github/workflows/deploy-prod.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Deploy all resources to DEV/PROD
2-
run-name: DEV/PROD deploy - @${{ github.actor }}
1+
name: Deploy all resources to PROD
2+
run-name: PROD deploy - @${{ github.actor }}
33

44
on:
55
workflow_dispatch:
@@ -25,9 +25,9 @@ jobs:
2525
uses: actions/cache@v4
2626
with:
2727
path: node_modules
28-
key: yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
28+
key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-dev
2929
restore-keys: |
30-
yarn-modules-${{ runner.os }}-
30+
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
3131
3232
- name: Run unit testing
3333
run: make test_unit
@@ -50,9 +50,9 @@ jobs:
5050
uses: actions/cache@v4
5151
with:
5252
path: node_modules
53-
key: yarn-modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-prod
53+
key: yarn-modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-prod
5454
restore-keys: |
55-
yarn-modules-${{ runner.os }}-
55+
yarn-modules-${{ runner.arch }}-${{ runner.os }}-
5656
5757
- name: Run build
5858
run: make build

0 commit comments

Comments
 (0)