Skip to content

Commit

Permalink
gh: support ARM builds
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed May 28, 2024
1 parent c39ba46 commit 8175db3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/generate-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,33 @@ jobs:
with:
go-version-file: 'cli/go.mod'

- name: Package MacOS executable
- name: Package MacOS executable (x86_64)
working-directory: ./cli
run: |
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="${GO_LDFLAGS}" -o hfsubset
tar -czvf hfsubset-macos_amd64.tar.gz hfsubset ../LICENSE.md ../README.md
rm hfsubset
- name: Package Linux executable
- name: Package MacOS executable (ARM)
working-directory: ./cli
run: |
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="${GO_LDFLAGS}" -o hfsubset
tar -czvf hfsubset-macos_arm64.tar.gz hfsubset ../LICENSE.md ../README.md
rm hfsubset
- name: Package Linux executable (x86_64)
working-directory: ./cli
run: |
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="${GO_LDFLAGS}" -o hfsubset
tar -czvf hfsubset-linux_amd64.tar.gz hfsubset ../LICENSE.md ../README.md
rm hfsubset
- name: Package Linux executable (ARM)
working-directory: ./cli
run: |
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -ldflags="${GO_LDFLAGS}" -o hfsubset
tar -czvf hfsubset-linux_arm64.tar.gz hfsubset ../LICENSE.md ../README.md
rm hfsubset
- name: Package Windows executable
working-directory: ./cli
Expand Down

0 comments on commit 8175db3

Please sign in to comment.