Skip to content

Commit b5af946

Browse files
committed
Add GitHub Actions CI
1 parent 39ffbf4 commit b5af946

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.16
19+
20+
- name: Build linux amd64
21+
run: go build -o geesefs-linux-amd64 -v
22+
23+
- name: Build Mac amd64
24+
run: env GOOS=darwin GOARCH=amd64 go build -o geesefs-mac-amd64 -v
25+
26+
- name: Test
27+
continue-on-error: true
28+
run: make run-test
29+
30+
- uses: "marvinpinto/action-automatic-releases@latest"
31+
with:
32+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
33+
prerelease: false
34+
files: |
35+
geesefs-linux-amd64
36+
geesefs-mac-amd64

0 commit comments

Comments
 (0)