fixed darwin build

This commit is contained in:
Liam Galvin 2018-11-24 20:57:51 +00:00
parent 74ea19eb58
commit 7a01195fd6
2 changed files with 2 additions and 4 deletions

View File

@ -46,12 +46,10 @@ jobs:
- run: - run:
name: "Publish Release on GitHub" name: "Publish Release on GitHub"
command: | command: |
go get github.com/tcnksm/ghr
mkdir -p release mkdir -p release
ls -la artifacts/linux
ls -la artifacts/darwin
cp artifacts/linux/* release/ cp artifacts/linux/* release/
cp artifacts/darwin/* release/ cp artifacts/darwin/* release/
go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} release/ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} release/
workflows: workflows:
version: 2 version: 2

View File

@ -36,4 +36,4 @@ build-linux:
.PHONY: build-darwin .PHONY: build-darwin
build-darwin: build-darwin:
mkdir -p bin/darwin mkdir -p bin/darwin
xgo -x -v -ldflags "-X main.Version='${CIRCLE_TAG}'" --targets=darwin/amd64 -out bin/darwin/${BINARY}-darwin-amd64 . xgo -x -v -ldflags "-X main.Version='${CIRCLE_TAG}'" --targets=darwin/amd64 -out bin/darwin/${BINARY} .