diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2020-03-25 10:51:04 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-25 21:26:15 +1100 |
commit | e64057b803ef8941f3241665c4d644148c40bf40 (patch) | |
tree | 3d28581c14adf30882ec39e5f631bfa40989186f | |
parent | 672667aa3e67428cfbc45c17f187015d9bbc38cb (diff) |
workflows: install gox in separate step in /tmp directory
avoid Go trying to add a dependency to go.mod file
-rw-r--r-- | .github/workflows/ci.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 878276864..4a321a5e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,11 @@ jobs: - name: Test code run: | ./test.sh - - name: Build binaries + - name: Install gox + working-directory: /tmp run: | go get github.com/mitchellh/gox - export PATH="$(go env GOPATH)/bin:$PATH" + echo "::add-path::$(go env GOPATH)/bin" + - name: Build binaries + run: | gox -parallel 4 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64" |