diff --git a/.circleci/config.yml b/.circleci/config.yml index 294ff225d4ed..c9364387ca9f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,13 +11,24 @@ version: 2.1 orbs: aws-cli: circleci/aws-cli@2.0.6 + macos: circleci/macos@2.5.1 # For Rosetta (see below) + node: circleci/node@5.2.0 # For a recent npm version (see below) jobs: # Build the **entire** app for macOS. build-macos: macos: xcode: 14.2.0 + resource_class: macos.m1.large.gen1 steps: - checkout + # Install Rosetta for AWS CLI and disable TSO to speed up S3 uploads (https://support.circleci.com/hc/en-us/articles/19334402064027-Troubleshooting-slow-uploads-to-S3-for-jobs-using-an-m1-macOS-resource-class) + - macos/install-rosetta + - run: sudo sysctl net.inet.tcp.tso=0 + + # Install a recent version of npm to workaround a notarization issue because of a symlink made by npm: https://github.com/electron-userland/electron-builder/issues/7755 + # Node.js v20.14.0 comes with npm v10.7.0. + - node/install: + node-version: "20.14.0" # System dependencies (for Emscripten and upload) - run: