From ba50390f0b7992ce45eeaeed1d0f0adcb59aaab9 Mon Sep 17 00:00:00 2001 From: Sergio Padrino Date: Tue, 27 Apr 2021 12:26:52 +0200 Subject: [PATCH] Add arm64 builds for darwin --- .travis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fb05172..0b22f66 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,19 +10,23 @@ go: git: depth: false +env: + - TARGET_ARCH: amd64 + - TARGET_ARCH: arm64 + install: '' script: - GIT_VERSION=$(git describe --tags) - - GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" . - - tar czf smimesign-$GIT_VERSION-macos.tgz smimesign + - 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 ./... deploy: name: $GIT_VERSION provider: releases skip_cleanup: true - file: smimesign-$GIT_VERSION-macos.tgz + file: smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz on: tags: true go: 1.x