summaryrefslogtreecommitdiffstats
path: root/ci/before_deploy.sh
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2019-04-25 10:49:59 -0400
committerAndrew Gallant <jamslam@gmail.com>2019-04-25 11:12:14 -0400
commit5ce2d7351dba9c113318f4e43c041be7c25eaee4 (patch)
tree4b519245d76ade4ed9c2b1e8c1be7d10623f6b94 /ci/before_deploy.sh
parent9dcfd9a205914af1398d0c655956b2045f51b125 (diff)
ci: use cross for musl x86_64 builds
This is necessary because jemalloc + musl + Ubuntu 16.04 is apparently broken. Moreover, jemalloc doesn't support i686, so we accept the performance regression there. See also: https://github.com/gnzlbg/jemallocator/issues/124
Diffstat (limited to 'ci/before_deploy.sh')
-rwxr-xr-xci/before_deploy.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh
index d352a88b..561cbb51 100755
--- a/ci/before_deploy.sh
+++ b/ci/before_deploy.sh
@@ -8,12 +8,13 @@ set -ex
# Generate artifacts for release
mk_artifacts() {
+ CARGO="$(builder)"
if is_arm; then
- cargo build --target "$TARGET" --release
+ "$CARGO" build --target "$TARGET" --release
else
# Technically, MUSL builds will force PCRE2 to get statically compiled,
# but we also want PCRE2 statically build for macOS binaries.
- PCRE2_SYS_STATIC=1 cargo build --target "$TARGET" --release --features 'pcre2'
+ PCRE2_SYS_STATIC=1 "$CARGO" build --target "$TARGET" --release --features 'pcre2'
fi
}