Skip to content

Commit b250b95

Browse files
authored
chore: release macos amd64 (#116)
* chore: Release macos amd64 * fix: windows exe
1 parent 7e3797d commit b250b95

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

.github/workflows/release-linux.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/release-macos.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/release-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)