-
-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (43 loc) · 936 Bytes
/
buildstatus.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
45
name: buildstatus
on:
push:
pull_request:
paths-ignore:
- 'README.md'
- 'LICENSE'
branches:
- master
jobs:
xgo:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
-
name: Checkout
uses: actions/checkout@v4
-
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Build
uses: crazy-max/ghaction-xgo@v3
with:
xgo_version: latest
go_version: 1.21
dest: build
prefix: ftrove
targets: windows/amd64,linux/amd64
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
trimpath: true
pkg: ./cmd/ftrove