Skip to content

Commit

Permalink
split universal macos binary into two (initia-labs#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vritra4 authored Oct 3, 2024
1 parent 749fd51 commit fd8a58c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build-darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,19 @@ jobs:
- name: Build and Package for Darwin
run: |
make build
mv ./build/opinitd ./build/opinitd.arm64
pushd build
tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin_aarch64.tar.gz ./opinitd
rm ./opinitd; popd
GOARCH=amd64 make build
mv ./build/opinitd ./build/opinitd.amd64
lipo -create -output ./build/opinitd ./build/opinitd.arm64 ./build/opinitd.amd64
pushd build
tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin.tar.gz ./opinitd
rm ./opinitd.arm64 ./opinitd.amd64 ./opinitd; popd
tar -czf "$GITHUB_WORKSPACE"/opinitd_"$VERSION"_Darwin_x86_64.tar.gz ./opinitd
rm ./opinitd; popd
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
opinitd_${{ env.VERSION }}_Darwin.tar.gz
opinitd_${{ env.VERSION }}_Darwin_x86_64.tar.gz
opinitd_${{ env.VERSION }}_Darwin_aarch64.tar.gz
env:
VERSION: ${{ env.VERSION }}

0 comments on commit fd8a58c

Please sign in to comment.