Skip to content

Commit

Permalink
builds: remove lipo command from linux build as it has issues with ru…
Browse files Browse the repository at this point in the history
…nning on linux/amd64 (#529)

Signed-off-by: Muvaffak Onus <[email protected]>
  • Loading branch information
muvaf authored Dec 9, 2024
1 parent bf68b42 commit 7e90a60
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,14 @@ jobs:
- name: Build
run: |
go install github.com/konoui/[email protected]
sed -i 's/version \= \"local-build\"/version = \"${{ env.release_tag }}\"/' main.go
mkdir bin
GOARCH=arm64 go build -ldflags="-s -w" -o bin/ios-arm64
GOARCH=amd64 go build -ldflags="-s -w" -o bin/ios-amd64
lipo bin/ios-amd64 bin/ios-arm64 -create -output bin/ios
cp ./mac-bin/go-ios-mac.zip .
cp ./win-bin/go-ios-win.zip .
zip -j go-ios-linux.zip bin/ios
zip -j go-ios-linux.zip bin/ios-arm64 bin/ios-amd64
- uses: AButler/[email protected]
with:
Expand All @@ -153,8 +150,8 @@ jobs:
cp ./mac-bin/ios ./npm_publish/dist/go-ios-darwin-amd64_darwin_amd64/ios
cp ./mac-bin/ios ./npm_publish/dist/go-ios-darwin-arm64_darwin_arm64/ios
cp ./win-bin/ios.exe ./npm_publish/dist/go-ios-windows-amd64_windows_amd64/ios.exe
cp ./bin/ios ./npm_publish/dist/go-ios-linux-amd64_linux_amd64/ios
cp ./bin/ios ./npm_publish/dist/go-ios-linux-arm64_linux_arm64/ios
cp ./bin/ios-amd64 ./npm_publish/dist/go-ios-linux-amd64_linux_amd64/ios
cp ./bin/ios-arm64 ./npm_publish/dist/go-ios-linux-arm64_linux_arm64/ios
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> ~/.npmrc
cd npm_publish
sed -i 's/\"local-build\"/\"${{ env.release_tag }}\"/' package.json
Expand Down

0 comments on commit 7e90a60

Please sign in to comment.