File tree Expand file tree Collapse file tree 1 file changed +3
-36
lines changed
Expand file tree Collapse file tree 1 file changed +3
-36
lines changed Original file line number Diff line number Diff line change 77 push :
88
99jobs :
10- build :
11- runs-on : ubuntu-latest
12- steps :
13- - name : Checkout code
14- uses : actions/checkout@v4
15-
16- - name : Set up Go
17- uses : actions/setup-go@v5
18- with :
19- go-version : ' 1.21'
20- cache : true
21-
22- - name : Build CLI for Linux
23- run : |
24- GOOS=linux GOARCH=amd64 go build -o cli-v2-linux ./cli-v2.go
25-
26- - name : Build CLI for Windows
27- run : |
28- GOOS=windows GOARCH=amd64 go build -o cli-v2.exe ./cli-v2.go
29-
30- - name : Build CLI for macOS
31- run : |
32- GOOS=darwin GOARCH=amd64 go build -o cli-v2-macos ./cli-v2.go
33-
34- - name : Upload CLI binaries
35- uses : actions/upload-artifact@v4
36- with :
37- name : cli-binaries
38- path : |
39- cli-v2-linux
40- cli-v2.exe
41- cli-v2-macos
42-
4310 test :
44- needs : build
4511 runs-on : ${{ matrix.os }}
4612 strategy :
4713 matrix :
5622 go-version : ' 1.21'
5723 cache : true
5824
59- - name : Download CLI binaries
60- uses : actions/ download-artifact@v4
25+ - name : Download CLI binaries from go workflow
26+ uses : dawidd6/action- download-artifact@v2
6127 with :
28+ workflow : go.yml
6229 name : cli-binaries
6330 path : .
6431
You can’t perform that action at this time.
0 commit comments