From 5e6af495ec0fa27921cccc3d88f5407aeb303358 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Wed, 27 Sep 2023 05:31:09 -0400 Subject: [PATCH] ci: explicitly switch macos build to silicon and upgrade xcode (#1720) * ci: explicitly switch macos build to silicon and upgrade xcode https://discuss.circleci.com/t/macos-resource-deprecation-update/46891 * ci: install go for arm64 on apple silicon * ci: install go via orb on apple silicon --- .circleci/config.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f1a6b27bd..a0d4b54d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,6 @@ version: 2.1 orbs: + golang: circleci/go@1.7.3 go: gotest/tools@0.0.14 executors: @@ -145,18 +146,15 @@ jobs: build-macos: description: build darwin boost binary macos: - xcode: "12.5.1" + xcode: "15.0.0" working_directory: ~/go/src/github.com/filecoin-project/boost resource_class: macos.x86.medium.gen2 steps: - prepare: linux: false darwin: true - - run: - name: Install go - command: | - curl -O https://dl.google.com/go/go1.19.5.darwin-amd64.pkg && \ - sudo installer -pkg go1.19.5.darwin-amd64.pkg -target / + - golang/install: + version: "1.19.5" - run: name: Install pkg-config command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config