File tree Expand file tree Collapse file tree 3 files changed +18
-9
lines changed
Expand file tree Collapse file tree 3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ jobs:
3030 - name : Build Backend for amd64
3131 run : |
3232 go mod download
33- go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load
33+ go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-linux-amd64
3434 - name : Build Backend for arm64
3535 run : |
36- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-arm64
36+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-linux- arm64
3737 - name : Release
3838 uses : softprops/action-gh-release@v1
3939 if : startsWith(github.ref, 'refs/tags/')
4040 with :
4141 files : |
42- gpt-load
43- gpt-load-arm64
42+ gpt-load-linux-amd64
43+ gpt-load-linux- arm64
4444 draft : true
4545 generate_release_notes : true
4646 env :
Original file line number Diff line number Diff line change @@ -27,16 +27,25 @@ jobs:
2727 uses : actions/setup-go@v5
2828 with :
2929 go-version : " 1.23.x"
30- - name : Build Backend
30+ - name : Build Backend arm64
3131 run : |
3232 go mod download
33- go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-macos
33+ go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-macos-arm64
34+ env :
35+ CGO_ENABLED : 0
36+
37+ - name : Build Backend amd64
38+ run : |
39+ go mod download
40+ CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-macos-amd64
41+
3442 - name : Release
3543 uses : softprops/action-gh-release@v1
3644 if : startsWith(github.ref, 'refs/tags/')
3745 with :
3846 files : |
39- gpt-load-macos
47+ gpt-load-macos-arm64
48+ gpt-load-macos-amd64
4049 draft : true
4150 generate_release_notes : true
4251 env :
Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ jobs:
3333 - name : Build Backend
3434 run : |
3535 go mod download
36- go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load.exe
36+ go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-windows-amd64 .exe
3737 - name : Release
3838 uses : softprops/action-gh-release@v1
3939 if : startsWith(github.ref, 'refs/tags/')
4040 with :
4141 files : |
42- gpt-load.exe
42+ gpt-load-windows-amd64 .exe
4343 draft : true
4444 generate_release_notes : true
4545 env :
You can’t perform that action at this time.
0 commit comments