File tree Expand file tree Collapse file tree 1 file changed +27
-15
lines changed
Expand file tree Collapse file tree 1 file changed +27
-15
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments