From e64057b803ef8941f3241665c4d644148c40bf40 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Wed, 25 Mar 2020 10:51:04 +0100 Subject: [PATCH] workflows: install gox in separate step in /tmp directory avoid Go trying to add a dependency to go.mod file --- .github/workflows/ci.yml | 7 +++++-- 1 file 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"