diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fe16c75..8d8d3f8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Execute CGO builds using XGO - uses: crazy-max/ghaction-xgo@v2 + uses: crazy-max/ghaction-xgo@v3 # docs: https://github.com/marketplace/actions/golang-cgo-cross-compiler#inputs with: xgo_version: latest @@ -21,7 +21,7 @@ jobs: dest: build pkg: cmd prefix: server - targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/amd64,darwin/arm64 + targets: windows/386,windows/amd64,linux/386,linux/amd64,linux/arm,linux/arm64,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 ea24b53..dc1c392 100755 --- a/build.sh +++ b/build.sh @@ -48,6 +48,14 @@ copy_linux_amd64() { copy "server-linux-amd64.so" "linux-x86-64" } +copy_linux_arm() { + copy "server-linux-arm-5.so" "linux-arm" +} + +copy_linux_arm64() { + copy "server-linux-arm64.so" "linux-aarch64" +} + copy_windows_amd64() { copy "server-windows-amd64.dll" "win32-x86-64" } @@ -73,6 +81,14 @@ cleanup copy_linux_amd64 buildJar "linux-amd64" +cleanup +copy_linux_arm +buildJar "linux-arm" + +cleanup +copy_linux_arm64 +buildJar "linux-arm64" + cleanup copy_windows_amd64 buildJar "windows-amd64" @@ -87,6 +103,8 @@ copy_macos copy_macos_arm64 copy_linux_386 copy_linux_amd64 +copy_linux_arm +copy_linux_arm64 copy_windows_amd64 copy_windows_386 buildJar "fat"