Skip to content

Commit

Permalink
Add arm64 builds for darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiou87 committed Apr 27, 2021
1 parent ba50390 commit 95a692a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
os: osx
osx_image: xcode12.3

language: go

Expand All @@ -12,13 +13,15 @@ git:

env:
- TARGET_ARCH: amd64
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
- TARGET_ARCH: arm64
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk

install: ''

script:
- GIT_VERSION=$(git describe --tags)
- GOARCH=$TARGET_ARCH GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
- CGO_ENABLED=1 GOARCH=$TARGET_ARCH GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
- tar czf smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz smimesign
- GO111MODULE=on go test -v ./...

Expand Down

0 comments on commit 95a692a

Please sign in to comment.