Skip to content

Instantly share code, notes, and snippets.

@IgorDePaula
Created July 26, 2020 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IgorDePaula/0f4914fb13a9f4deb05a3278cb4ad790 to your computer and use it in GitHub Desktop.
Save IgorDePaula/0f4914fb13a9f4deb05a3278cb4ad790 to your computer and use it in GitHub Desktop.
name: Go
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: GOOS=linux GOARCH=amd64 go build -o nome-saida -v main.go
- uses: actions/upload-artifact@v2
with:
name: nome-saida
path: nome-saida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment