Skip to content

Commit df09fcb

Browse files
committed
Fix Github Action build workflow
1 parent ed2dfa4 commit df09fcb

File tree

1 file changed

+27
-15
lines changed

1 file changed

+27
-15
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,32 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
os: [ubuntu-latest, macos-latest, windows-latest]
12+
include:
13+
- os: ubuntu-latest
14+
goos: linux
15+
goarch: amd64
16+
name: ubuntu
17+
- os: macos-latest
18+
goos: darwin
19+
goarch: amd64
20+
name: mac
21+
- os: windows-latest
22+
goos: windows
23+
goarch: amd64
24+
name: win
1325
go-version: [1.21.5]
1426
steps:
15-
- name: Set up Go
16-
uses: actions/setup-go@v2
17-
with:
18-
go-version: ${{ matrix.go-version }}
19-
- name: Check out code
20-
uses: actions/checkout@v2
21-
- name: Build
22-
run: |
23-
env GOOS=${{ matrix.platform.os }} GOARCH=${{ matrix.platform.arch }} go build -v -o sbstck-dl-${{ matrix.platform.os }}-${{ matrix.platform.arch }}
24-
- name: Upload artifact
25-
uses: actions/upload-artifact@v2
26-
with:
27-
name: sbstck-dl-${{ matrix.os }}
28-
path: sbstck-dl-${{ matrix.os }}
27+
- name: Set up Go
28+
uses: actions/setup-go@v4
29+
with:
30+
go-version: ${{ matrix.go-version }}
31+
- name: Check out code
32+
uses: actions/checkout@v4
33+
- name: Build
34+
run: |
35+
env GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -v -o sbstck-dl-${{ matrix.goos }}-${{ matrix.goarch }}
36+
- name: Upload artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: sbstck-dl-${{ matrix.name }}-${{ matrix.goarch }}
40+
path: sbstck-dl-${{ matrix.name }}-${{ matrix.goarch }}

0 commit comments

Comments
 (0)