From 95a692ad7dcaa8f05ddac61779b10757684df706 Mon Sep 17 00:00:00 2001 From: Sergio Padrino Date: Tue, 27 Apr 2021 18:07:29 +0200 Subject: [PATCH] Add arm64 builds for darwin --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0b22f66..8cf13c4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ os: osx +osx_image: xcode12.3 language: go @@ -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 ./...