File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,21 @@ jobs:
24
24
ext : " "
25
25
steps :
26
26
- uses : actions/checkout@v4
27
-
28
27
- uses : actions/setup-go@v4
29
28
with :
30
29
go-version : ' 1.23.0'
31
-
32
30
- name : Build artifact
31
+ shell : pwsh
33
32
env :
34
33
GOOS : ${{ matrix.goos }}
35
34
GOARCH : amd64
36
35
run : |
37
- mkdir -p bin
38
- go build -v \
39
- -ldflags "-s -w" \
40
- -o bin/terminalapp_${{ matrix.goos }}_amd64${{ matrix.ext }} \
41
- ./cmd/terminalapp/main
42
-
36
+ if ($Env:RUNNER_OS -eq 'Windows') {
37
+ New-Item -ItemType Directory -Force -Path bin | Out-Null
38
+ } else {
39
+ mkdir -p bin
40
+ }
41
+ go build -v -ldflags "-s -w" -o "bin/terminalapp_${Env:GOOS}_amd64${{ matrix.ext }}" ./cmd/terminalapp/main
43
42
- uses : actions/upload-artifact@v4
44
43
with :
45
44
name : terminalapp-${{ matrix.goos }}-amd64
53
52
- uses : actions/download-artifact@v4
54
53
with :
55
54
path : ./bin
56
-
57
55
- uses : softprops/action-gh-release@v1
58
56
with :
59
57
tag_name : ${{ github.ref_name }}
You can’t perform that action at this time.
0 commit comments