1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-23 12:18:51 +02:00

Use setup-go Action instead of container

This commit is contained in:
Dawid Dziurla 2020-03-20 14:18:44 +01:00 committed by Jesse Duffield
parent a990fbc3eb
commit 1e8ade2431

View File

@ -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"