Skip to content

Commit

Permalink
Try a static build
Browse files Browse the repository at this point in the history
  • Loading branch information
msh100 committed Apr 8, 2024
1 parent 7534943 commit 8fe6192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
run: |
OBJECT_SUFFIX="${{ env.object_suffix }}"
mkdir output/
go build -o "output/modem-stats${OBJECT_SUFFIX}.x86" main.go
GOARCH=arm GOARM=5 go build -o "output/modem-stats${OBJECT_SUFFIX}.arm5" main.go
GOOS=darwin GOARCH=arm64 go build -o "output/modem-stats${OBJECT_SUFFIX}.macos-arm64" main.go
CGO_ENABLED=0 go build -o "output/modem-stats${OBJECT_SUFFIX}.x86" -ldflags '-extldflags "-static"' main.go
CGO_ENABLED=0 GOARCH=arm GOARM=5 go build -o "output/modem-stats${OBJECT_SUFFIX}.arm5" -ldflags '-extldflags "-static"' main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o "output/modem-stats${OBJECT_SUFFIX}.macos-arm64" -ldflags '-extldflags "-static"' main.go
- name: Push binaries to B2
uses: jakejarvis/s3-sync-action@master
Expand Down

0 comments on commit 8fe6192

Please sign in to comment.