Created
July 26, 2020 21:31
-
-
Save IgorDePaula/0f4914fb13a9f4deb05a3278cb4ad790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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