summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2018-09-07 13:53:28 -0400
committerAndrew Gallant <jamslam@gmail.com>2018-09-07 14:00:23 -0400
commitc5d467a2ab3b74036bb3835233d4f9e1571d7365 (patch)
tree6e24b69c4b3b5ae779c9014da0e009c151b7b722
parenta62cd553c2b2f3d44873c1a3c5dd33306a0e081a (diff)
ci: always force PCRE2 static builds for releases
-rwxr-xr-xci/before_deploy.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh
index 68f80bdf..d352a88b 100755
--- a/ci/before_deploy.sh
+++ b/ci/before_deploy.sh
@@ -11,7 +11,9 @@ mk_artifacts() {
if is_arm; then
cargo build --target "$TARGET" --release
else
- cargo build --target "$TARGET" --release --features 'pcre2'
+ # 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'
fi
}