-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builds: remove lipo command from linux build as it has issues with ru…
…nning on linux/amd64 (#529) Signed-off-by: Muvaffak Onus <[email protected]>
- Loading branch information
Showing
1 changed file
with
3 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|