Skip to content

Commit

Permalink
ci: use x86_64 Node.js for some macOS jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanders11 committed Jan 21, 2024
1 parent af90609 commit de240cf
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
version: 2.1

orbs:
node: electronjs/node@2.1.0
node: electronjs/node@2.2.0

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 de240cf

Please sign in to comment.