-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.12 KB
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Go
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install dependencies
run: go get -v -t -d ./...
- name: Build-Macos
run: GOOS=darwin GOARCH=amd64 go build -o ./dist/fs_macOS_AMD64
- name: Build-Macos-Arm64
run: GOOS=darwin GOARCH=arm64 go build -o ./dist/fs_macOS_Apple_Silicon
- name: Build-Windows-x64
run: GOOS=windows GOARCH=amd64 go build -o ./dist/fs_Windows_AMD64.exe
- name: Build-Windows-AMR64
run: GOOS=windows GOARCH=arm64 go build -o ./dist/fs_Windows_ARM64.exe
- name: Build-Linux-x64
run: GOOS=linux GOARCH=amd64 go build -o ./dist/fs_Linux_AMD64
- name: Build-Linux-AMR64
run: GOOS=linux GOARCH=arm64 go build -o ./dist/fs_Linux_ARM64
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
./dist/*