Skip to content

Commit

Permalink
ci: use x64 arch node 10.x for macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
robinvw1 committed Aug 22, 2024
1 parent bde05ad commit 0a95d1b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,21 @@ jobs:
name: plugin-test (pnpm v${{ matrix.version }}, Node.js v${{ matrix.node }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/github-script@v7
id: calculate_architecture
with:
result-encoding: string
script: |
if ('${{ matrix.os }}' === 'macos-latest' && '${{ matrix.node }}' === '10') {
return "x64"
} else {
return ''
}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
architecture: ${{ steps.calculate_architecture.outputs.result }}
- name: Test pnpm
uses: asdf-vm/actions/plugin-test@v3
with:
Expand Down

0 comments on commit 0a95d1b

Please sign in to comment.