Skip to content

Commit

Permalink
workaround: use macos for build
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Falk Nielsen committed Dec 14, 2023
1 parent 82b3084 commit 0f7f51a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build-release:
runs-on: ubuntu-latest
runs-on: macos-latest
permissions:
contents: write
steps:
Expand Down
7 changes: 3 additions & 4 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ cp -r tools/assets/securecrt-inventory.app dist/darwin/arm64
cp -r tools/assets/securecrt-inventory.app dist/darwin/amd64

CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -ldflags "-H=windowsgui" -o dist/securecrt-inventory.exe main.go
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o dist/darwin/arm64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go
CGO_ENABLED=1 GOOS=darwin GOARCH=arm64 go build -o dist/darwin/arm64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o dist/darwin/amd64/securecrt-inventory.app/Contents/MacOS/securecrt-inventory main.go

zip -r dist/securecrt-inventory-darwin-arm64.zip dist/darwin/arm64/securecrt-inventory.app
zip -r dist/securecrt-inventory-darwin-amd64.zip dist/darwin/amd64/securecrt-inventory.app
zip -r dist/securecrt-inventory-windows-amd64.zip dist/securecrt-inventory.exe

rm dist/securecrt-inventory.exe
rm -rf dist/darwin/arm64
rm -rf dist/darwin/amd64
rm -rf dist/darwin

0 comments on commit 0f7f51a

Please sign in to comment.