File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1010git :
1111 depth : false
1212
13+ env :
14+ - TARGET_ARCH : amd64
15+ - TARGET_ARCH : arm64
16+
1317install : ' '
1418
1519script :
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
2125deploy :
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
You can’t perform that action at this time.
0 commit comments