Skip to content

Commit e1cd99b

Browse files
authored
Update go.yml
1 parent 55c5995 commit e1cd99b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/go.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ on:
1010
branches: [ "v2" ]
1111

1212
jobs:
13-
1413
build:
1514
runs-on: ubuntu-latest
1615
steps:
17-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1817

1918
- name: Set up Go
20-
uses: actions/setup-go@v4
19+
uses: actions/setup-go@v5
2120
with:
22-
go-version: '1.21'
21+
go-version: '1.21.x'
2322

2423
- name: Build
25-
run: go build -v ./...
24+
run: GOOS=linux GOARCH=${ARCH} CGO_ENABLED=0 go build -o /usr/local/bin/goup
2625

2726
- name: Test
2827
run: go test -v ./...
28+
29+
- name: Upload a Build Artifact
30+
uses: actions/[email protected]
31+
with:
32+
path: /usr/local/bin/goup
33+

0 commit comments

Comments
 (0)