Skip to content

Commit

Permalink
build gcsim binary for other arch
Browse files Browse the repository at this point in the history
  • Loading branch information
LeiShi1313 committed Nov 28, 2023
1 parent 571bb41 commit ea928cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-gcsim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
run: |
pushd gcsim/cmd/gcsim
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gcsim
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o gcsim.arm64
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o gcsim.darwin
GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o gcsim.darwin.arm64
GOOS=windows GOARCH=amd64 go build -o gcsim.exe
popd
Expand All @@ -65,7 +68,7 @@ jobs:
run: |
mkdir -p gcsim_pypi/bin
cp gcsim/cmd/gcsim/gcsim gcsim_pypi/bin/
cp gcsim/cmd/gcsim/gcsim.exe gcsim_pypi/bin/
cp gcsim/cmd/gcsim/gcsim* gcsim_pypi/bin/
# Set up Python and dependencies for PyPI upload
- name: Set up Python
Expand Down

0 comments on commit ea928cf

Please sign in to comment.