Skip to content

Commit ee8cc18

Browse files
ci: fix
1 parent 9936bf8 commit ee8cc18

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,21 @@ jobs:
3030
runs-on: ${{ matrix.os }}
3131
steps:
3232
- uses: actions/checkout@v4
33+
- uses: actions/github-script@v7
34+
id: calculate_architecture
35+
with:
36+
result-encoding: string
37+
script: |
38+
if ('${{ matrix.os }}' === 'macos-latest' && '${{ matrix['node-version'] }}' === '10.x') {
39+
return "x64"
40+
} else {
41+
return ''
42+
}
3343
- name: Use Node.js ${{ matrix.node-version }}
3444
uses: actions/setup-node@v4
3545
with:
3646
node-version: ${{ matrix.node-version }}
47+
architecture: ${{ steps.calculate_architecture.outputs.result }}
3748
cache: yarn
3849
- name: Install dependencies
3950
run: |

0 commit comments

Comments
 (0)