Skip to content

Commit

Permalink
Add one more missing dependency for Arm static build (#307)
Browse files Browse the repository at this point in the history
Signed-off-by: Aravinda Vishwanathapura <[email protected]>
  • Loading branch information
aravindavk authored Feb 8, 2023
1 parent 5ee29a5 commit 74851b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/release_build.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

PKG_VERSION = ENV["VERSION"]
ENTRYPOINT = "/bin/sh"
CMD_ARGS = "-c '/sbin/apk add --update --no-cache --force-overwrite sqlite-dev sqlite-static libxml2-static xz-static && cd mgr && /usr/bin/shards build --production --release --static --stats --time'"
CMD_ARGS = "-c '/sbin/apk add --update --no-cache --force-overwrite sqlite-dev sqlite-static yaml-static libxml2-static xz-static && cd mgr && /usr/bin/shards build --production --release --static --stats --time'"

# Build Amd64
TEST %{docker run --platform=linux/amd64 -i -v `pwd`:/workspace -w /workspace --env VERSION=#{PKG_VERSION} --rm --entrypoint #{ENTRYPOINT} 84codes/crystal:1.7.2-alpine-latest #{CMD_ARGS}}

# Rename release binary
TEST "mv bin/kadalu bin/kadalu-amd64"
TEST "mv mgr/bin/kadalu mgr/bin/kadalu-amd64"

# Build Arm64
TEST "docker run --rm --privileged multiarch/qemu-user-static --reset -p yes"
TEST %{docker run --platform=linux/arm64 -v `pwd`:/workspace -w /workspace --env VERSION=#{PKG_VERSION} -i --rm --entrypoint #{ENTRYPOINT} 84codes/crystal:1.7.2-alpine-latest #{CMD_ARGS}}

# Rename release binary
TEST "mv bin/kadalu bin/kadalu-arm64"
TEST "mv mgr/bin/kadalu mgr/bin/kadalu-arm64"

0 comments on commit 74851b0

Please sign in to comment.