diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1017d8a..fe16c75 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,7 +21,7 @@ jobs: dest: build pkg: cmd prefix: server - targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64 + targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64,darwin/arm64 # Prints the build commands as compilation progresses (default false) x: true ldflags: -w diff --git a/build.sh b/build.sh index 2a25e32..ea24b53 100755 --- a/build.sh +++ b/build.sh @@ -36,6 +36,10 @@ copy_macos() { copy "server-darwin-amd64.dylib" "darwin-x86-64" "lib" } +copy_macos_arm64() { + copy "server-darwin-arm64.dylib" "darwin-aarch64" "lib" +} + copy_linux_386() { copy "server-linux-386.so" "linux-x86" } @@ -57,6 +61,10 @@ cleanup copy_macos buildJar "macos-amd64" +cleanup +copy_macos_arm64 +buildJar "macos-arm64" + cleanup copy_linux_386 buildJar "linux-i386" @@ -76,6 +84,7 @@ buildJar "windows-i386" # build single cross-platform fat jar cleanup copy_macos +copy_macos_arm64 copy_linux_386 copy_linux_amd64 copy_windows_amd64