diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2020-03-20 14:18:44 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-21 12:55:44 +1100 |
commit | 1e8ade24319f91f37c0ba811f3f901e20352d80c (patch) | |
tree | 02a1f721fbf2035e099ba954dabedf4112a05cb9 /.github | |
parent | a990fbc3eb5858b723ee9c47d1abbc7f542df552 (diff) |
Use setup-go Action instead of container
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 8 |
1 files 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" |