Skip to content

Commit

Permalink
workflows: install gox in separate step in /tmp directory
Browse files Browse the repository at this point in the history
avoid Go trying to add a dependency to go.mod file
  • Loading branch information
dawidd6 authored and jesseduffield committed Mar 25, 2020
1 parent 672667a commit e64057b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e64057b

Please sign in to comment.