Skip to content

Commit

Permalink
Add build target for macOS arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
extremecoders-re committed May 6, 2021
1 parent 64c2603 commit 349d555
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,29 @@ test: off
# install:
# - cinst upx

# Build for Windows, Linux & macOS (x86 + x64)
# Build for Windows, Linux & macOS (x86, x64, arm64)
build_script:
- SET GOOS=windows
- SET GOARCH=386
- go build -ldflags "-s -w" -o go-dispatch-proxy.win.x86.exe
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.win.x86.exe

- SET GOARCH=amd64
- go build -ldflags "-s -w" -o go-dispatch-proxy.win.x64.exe
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.win.x64.exe

- SET GOOS=linux
- SET GOARCH=386
- go build -ldflags "-s -w" -o go-dispatch-proxy.linux.x86
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.linux.x86

- SET GOARCH=amd64
- go build -ldflags "-s -w" -o go-dispatch-proxy.linux.x64
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.linux.x64

- SET GOOS=darwin
- SET GOARCH=amd64
- go build -ldflags "-s -w" -o go-dispatch-proxy.macos.x64
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.macos.x64

- SET GOOS=darwin
- SET GOARCH=arm64
- go build -ldflags -x "-s -w" -o go-dispatch-proxy.macos.arm64

after_build:
# - upx -9 -o go-dispatch-proxy.exe go-dispatch-proxy.win.x86.exe
Expand All @@ -61,10 +65,15 @@ after_build:
- 7z a go-dispatch-proxy.macos.x64.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy

- ren go-dispatch-proxy.macos.arm64 go-dispatch-proxy
- 7z a go-dispatch-proxy.macos.arm64.7z C:\go-dispatch-proxy\go-dispatch-proxy
- del /q go-dispatch-proxy

# Downloadables
artifacts:
- path: go-dispatch-proxy.win.x86.7z
- path: go-dispatch-proxy.win.x64.7z
- path: go-dispatch-proxy.linux.x86.7z
- path: go-dispatch-proxy.linux.x64.7z
- path: go-dispatch-proxy.macos.x64.7z
- path: go-dispatch-proxy.macos.arm64.7z

0 comments on commit 349d555

Please sign in to comment.