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 3cd8e93 commit de93522
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de93522

Please sign in to comment.