Skip to content

Commit

Permalink
ci: use x86_64 Node.js for some macOS jobs (#1533)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Jan 22, 2024
1 parent 8c69125 commit 2634144
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .circleci/config.yml
Expand Up @@ -5,9 +5,15 @@ orbs:

commands:
install:
parameters:
arch:
type: enum
enum: ['', 'arm64', 'x86_64']
default: ''
steps:
- run: git config --global core.autocrlf input
- node/install:
arch: << parameters.arch >>
node-version: '18.17'
- checkout
- node/install-packages
Expand Down Expand Up @@ -40,7 +46,19 @@ jobs:
enum: [ 'x64', 'arm64' ]
executor: node/macos
steps:
- install
- when:
condition:
equal: ['x64', << parameters.arch >>]
steps:
- node/install-rosetta
- install:
arch: 'x86_64'
- when:
condition:
not:
equal: ['x64', << parameters.arch >>]
steps:
- install
- test
win-test:
parameters:
Expand All @@ -67,7 +85,19 @@ jobs:
enum: [ 'x64', 'arm64' ]
executor: node/macos
steps:
- install
- when:
condition:
equal: ['x64', << parameters.arch >>]
steps:
- node/install-rosetta
- install:
arch: 'x86_64'
- when:
condition:
not:
equal: ['x64', << parameters.arch >>]
steps:
- install
- run: chmod +x tools/add-macos-cert.sh && . ./tools/add-macos-cert.sh
- run: npx yarn run publish --arch=<< parameters.arch >> --dry-run
- store_artifacts:
Expand Down

0 comments on commit 2634144

Please sign in to comment.