From 1e8ade24319f91f37c0ba811f3f901e20352d80c Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Fri, 20 Mar 2020 14:18:44 +0100 Subject: Use setup-go Action instead of container --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9afb55ade..b5bfd37e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,13 +5,15 @@ on: push jobs: ci: runs-on: ubuntu-latest - container: - image: golang:1.14 env: GOFLAGS: -mod=vendor steps: - name: Checkout uses: actions/checkout@v2 + - name: Set up Go + uses: actions/setup-go@v1 + with: + go-version: 1.14.x - name: Format run: | if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then @@ -24,4 +26,4 @@ jobs: - name: Build run: | go get github.com/mitchellh/gox - gox -parallel 4 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64" + $GOBIN/gox -parallel 4 -os "linux freebsd netbsd windows" -osarch "darwin/i386 darwin/amd64" -- cgit v1.2.3