Skip to content
This repository was archived by the owner on Jun 7, 2024. It is now read-only.

Commit d1ca8b8

Browse files
committed
2 parents eca8187 + 048dff5 commit d1ca8b8

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/go.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
env:
14+
GOARCH: amd64
15+
GOOS: linux
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v2
21+
with:
22+
go-version: 1.15
23+
24+
- name: Build
25+
run: |
26+
mkdir release
27+
go get gopkg.in/yaml.v2
28+
go build -ldflags "-s -w" -o ./release/sniproxy-linux-amd64 ./
29+
30+
- uses: actions/upload-artifact@v2
31+
name: Upload Artifacts
32+
with:
33+
name: sniproxy-linux-amd64
34+
path: release/sniproxy-linux-amd64
35+

0 commit comments

Comments
 (0)