Skip to content

Commit

Permalink
release: build static executable
Browse files Browse the repository at this point in the history
  • Loading branch information
aleasims committed Dec 10, 2024
1 parent 1b9afd5 commit 5a7b254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
PCRE2_SYS_STATIC: 1
# To ensure openssl is static linked
OPENSSL_STATIC: 1
# Build static
RUSTFLAGS: "-Ctarget-feature=+crt-static"
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion Cross.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build]
pre-build = "./scripts/cross/pre-build-script.sh"
env.passthrough = ["BUF_CACHE_DIR=/tmp"]
env.passthrough = ["BUF_CACHE_DIR=/tmp", "RUSTFLAGS=-Ctarget-feature=+crt-static"]

0 comments on commit 5a7b254

Please sign in to comment.