Skip to content

Commit

Permalink
fix: outdated entrypoint for macos, sync across jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals committed Feb 12, 2024
1 parent 67a6e5a commit 0328209
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
env:
CGO_ENABLED: 1
GO_VERSION: 1.21.4
ENTRYPOINT: cli/main.go

jobs:
compile-windows-amd64:
Expand All @@ -25,7 +26,7 @@ jobs:
run: |
go version
go mod download
go build -o cmd/bugbuddy_windows_amd64.exe cli/main.go
go build -o cmd/bugbuddy_windows_amd64.exe ${{ env.ENTRYPOINT }}
- name: Create binary only artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -47,7 +48,7 @@ jobs:
run: |
go version
go mod download
go build -o cmd/bugbuddy_linux_amd64 cli/main.go
go build -o cmd/bugbuddy_linux_amd64 ${{ env.ENTRYPOINT }}
- name: Create binary only artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -70,15 +71,15 @@ jobs:
run: |
go version
go mod download
go build -o server/cmd/bugbuddy_macos_amd64 server
go build -o server/cmd/bugbuddy_macos_amd64 ${{ env.ENTRYPOINT }}
- name: Build arm64 binary
working-directory: ./server
env:
GOARCH: arm64
run: |
go version
go mod download
go build -o server/cmd/bugbuddy_macos_arm64 server
go build -o server/cmd/bugbuddy_macos_arm64 ${{ env.ENTRYPOINT }}
- name: Create universal binary
run: lipo -create -output server/cmd/bugbuddy_macos_universal server/cmd/bugbuddy_macos_amd64 server/cmd/bugbuddy_macos_arm64
- name: Create binary only artifact
Expand Down

0 comments on commit 0328209

Please sign in to comment.