Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Use static flag on linux only
Browse files Browse the repository at this point in the history
faustinoaq committed Mar 7, 2018
1 parent 0642e04 commit 8dcb0c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/ci
Original file line number Diff line number Diff line change
@@ -71,7 +71,7 @@ prepare_build() {

deploy() {
on_both mkdir -p ${DEPLOY_DIR}
with_build_env "crystal build src/scry.cr -s --static --release --no-debug -o ${DEPLOY_DIR}/scry"
with_build_env "crystal build src/scry.cr -s --release --no-debug -o ${DEPLOY_DIR}/scry"
on_both tar -cvzf ${DEPLOY_FILENAME} ${DEPLOY_DIR}/scry
}

@@ -84,7 +84,7 @@ with_build_env() {
on_linux docker run \
-v $PWD:/mnt \
-w /mnt \
crystal/scry-image /bin/sh -c "'$command'"
crystal/scry-image /bin/sh -c "'$command --static'"


on_osx /bin/sh -c "'$command'"

0 comments on commit 8dcb0c3

Please sign in to comment.