Skip to content

Commit

Permalink
Create go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
le0tan authored Mar 30, 2022
1 parent 858eb51 commit 13fdfd1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.17

- name: Build Windows
run: env GOOS=windows GOARCH=amd64 go build -o ./aivle-cli-windows-amd64.exe

- name: Build Linux
run: env GOOS=linux GOARCH=amd64 go build -o ./aivle-cli-linux-amd64

- uses: actions/upload-artifact@v3
with:
name: build-artifact
path: ./aivle-cli-*

0 comments on commit 13fdfd1

Please sign in to comment.