Skip to content

Commit

Permalink
Merge pull request #39 from 1c3z/main
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeyax committed Nov 17, 2023
2 parents eb7d85e + 4b67f10 commit ca81d43
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand All @@ -57,6 +61,10 @@ cleanup
copy_macos
buildJar "macos-amd64"

cleanup
copy_macos_arm64
buildJar "macos-arm64"

cleanup
copy_linux_386
buildJar "linux-i386"
Expand All @@ -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
Expand Down

0 comments on commit ca81d43

Please sign in to comment.