Update CI to use Go 1.17, produce Apple Silicon builds (closes #844)

This commit is contained in:
Neil Alexander 2021-09-28 11:02:15 +01:00
parent f92d812f3c
commit 99227b60ce
5 changed files with 89 additions and 44 deletions

View file

@ -5,7 +5,7 @@ version: 2.1
jobs:
lint:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout
@ -23,7 +23,7 @@ jobs:
build-linux:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout
@ -124,11 +124,11 @@ jobs:
echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install Go 1.16
name: Install Go 1.17
command: |
cd /tmp
curl -LO https://dl.google.com/go/go1.16.darwin-amd64.pkg
sudo installer -pkg /tmp/go1.16.darwin-amd64.pkg -target /
curl -LO https://dl.google.com/go/go1.17.darwin-amd64.pkg
sudo installer -pkg /tmp/go1.17.darwin-amd64.pkg -target /
#- run:
# name: Install Gomobile
@ -142,11 +142,15 @@ jobs:
GO111MODULE=on GOOS=darwin GOARCH=amd64 ./build
cp yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-amd64
cp yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-darwin-amd64;
GO111MODULE=on GOOS=darwin GOARCH=arm64 ./build
cp yggdrasil /tmp/upload/$CINAME-$CIVERSION-darwin-arm64
cp yggdrasilctl /tmp/upload/$CINAME-$CIVERSION-yggdrasilctl-darwin-arm64;
- run:
name: Build for macOS (.pkg format)
command: |
PKGARCH=amd64 sh contrib/macos/create-pkg.sh
PKGARCH=arm64 sh contrib/macos/create-pkg.sh
mv *.pkg /tmp/upload/
#- run:
@ -164,7 +168,7 @@ jobs:
build-other:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
steps:
- checkout