Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Commit

Permalink
Update CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoreeq committed Nov 4, 2021
1 parent 38a6858 commit 60cbddf
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2.1
jobs:
lint:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17

steps:
- checkout
Expand All @@ -23,7 +23,7 @@ jobs:
build-linux:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17

steps:
- checkout
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:

build-macos:
macos:
xcode: "10.0.0"
xcode: "13.0.0"

working_directory: ~/go/src/github.com/yggdrasil-network/yggdrasil-go

Expand All @@ -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
Expand All @@ -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:
Expand All @@ -164,7 +168,7 @@ jobs:

build-other:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17

steps:
- checkout
Expand Down

0 comments on commit 60cbddf

Please sign in to comment.