From c9831aeb421355c126b1abc478282f95990a85ca Mon Sep 17 00:00:00 2001 From: vigo Date: Sat, 24 Jun 2023 11:34:17 +0200 Subject: [PATCH] [make] add arm64-darwin release builds --- .github/workflows/release.yml | 1 + makefile | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5349fe1d8d..6909df1292 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,6 +63,7 @@ jobs: wowsimcli-amd64-linux.zip wowsimcli-windows.exe.zip wowsimwotlk-amd64-darwin.zip + wowsimwotlk-arm64-darwin.zip wowsimwotlk-amd64-linux.zip wowsimwotlk-windows.exe.zip diff --git a/makefile b/makefile index 7db086bf0a..00342a45f8 100644 --- a/makefile +++ b/makefile @@ -71,6 +71,7 @@ clean: wowsimwotlk \ wowsimwotlk-windows.exe \ wowsimwotlk-amd64-darwin \ + wowsimwotlk-arm64-darwin \ wowsimwotlk-amd64-linux \ dist \ binary_dist \ @@ -184,11 +185,13 @@ wowsimwotlk-windows.exe: wowsimwotlk release: wowsimwotlk wowsimwotlk-windows.exe GOOS=darwin GOARCH=amd64 GOAMD64=v2 go build -o wowsimwotlk-amd64-darwin -ldflags="-X 'main.Version=$(VERSION)' -s -w" ./sim/web/main.go + GOOS=darwin GOARCH=arm64 go build -o wowsimwotlk-arm64-darwin -ldflags="-X 'main.Version=$(VERSION)' -s -w" ./sim/web/main.go GOOS=linux GOARCH=amd64 GOAMD64=v2 go build -o wowsimwotlk-amd64-linux -ldflags="-X 'main.Version=$(VERSION)' -s -w" ./sim/web/main.go GOOS=linux GOARCH=amd64 GOAMD64=v2 go build -o wowsimcli-amd64-linux --tags=with_db -ldflags="-X 'main.Version=$(VERSION)' -s -w" ./cmd/wowsimcli/cli_main.go # Now compress into a zip because the files are getting large. zip wowsimwotlk-windows.exe.zip wowsimwotlk-windows.exe zip wowsimwotlk-amd64-darwin.zip wowsimwotlk-amd64-darwin + zip wowsimwotlk-arm64-darwin.zip wowsimwotlk-arm64-darwin zip wowsimwotlk-amd64-linux.zip wowsimwotlk-amd64-linux zip wowsimcli-amd64-linux.zip wowsimcli-amd64-linux zip wowsimcli-windows.exe.zip wowsimcli-windows.exe