Skip to content

Commit ba50390

Browse files
committed
Add arm64 builds for darwin
1 parent 3cd8e93 commit ba50390

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.travis.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@ go:
1010
git:
1111
depth: false
1212

13+
env:
14+
- TARGET_ARCH: amd64
15+
- TARGET_ARCH: arm64
16+
1317
install: ''
1418

1519
script:
1620
- GIT_VERSION=$(git describe --tags)
17-
- GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
18-
- tar czf smimesign-$GIT_VERSION-macos.tgz smimesign
21+
- GOARCH=$TARGET_ARCH GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
22+
- tar czf smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz smimesign
1923
- GO111MODULE=on go test -v ./...
2024

2125
deploy:
2226
name: $GIT_VERSION
2327
provider: releases
2428
skip_cleanup: true
25-
file: smimesign-$GIT_VERSION-macos.tgz
29+
file: smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz
2630
on:
2731
tags: true
2832
go: 1.x

0 commit comments

Comments
 (0)