We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cd8e93 commit ba50390Copy full SHA for ba50390
.travis.yml
@@ -10,19 +10,23 @@ go:
10
git:
11
depth: false
12
13
+env:
14
+ - TARGET_ARCH: amd64
15
+ - TARGET_ARCH: arm64
16
+
17
install: ''
18
19
script:
20
- 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
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
23
- GO111MODULE=on go test -v ./...
24
25
deploy:
26
name: $GIT_VERSION
27
provider: releases
28
skip_cleanup: true
- file: smimesign-$GIT_VERSION-macos.tgz
29
+ file: smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz
30
on:
31
tags: true
32
go: 1.x
0 commit comments