Skip to content

Commit 95a692a

Browse files
committed
Add arm64 builds for darwin
1 parent ba50390 commit 95a692a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
os: osx
2+
osx_image: xcode12.3
23

34
language: go
45

@@ -12,13 +13,15 @@ git:
1213

1314
env:
1415
- TARGET_ARCH: amd64
16+
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
1517
- TARGET_ARCH: arm64
18+
SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
1619

1720
install: ''
1821

1922
script:
2023
- GIT_VERSION=$(git describe --tags)
21-
- GOARCH=$TARGET_ARCH GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
24+
- CGO_ENABLED=1 GOARCH=$TARGET_ARCH GO111MODULE=on go build -o smimesign -ldflags "-X main.versionString=$GIT_VERSION" .
2225
- tar czf smimesign-$GIT_VERSION-macos-$TARGET_ARCH.tgz smimesign
2326
- GO111MODULE=on go test -v ./...
2427

0 commit comments

Comments
 (0)