-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
yum install -y glibc-devel.i686 | ||
|
||
rust_version="$(cat "ci/rust-versions/stable.txt")" | ||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \ | ||
sh -s -- -y --default-toolchain "$rust_version" --profile minimal \ | ||
-t x86_64-unknown-linux-gnu \ | ||
-t i686-unknown-linux-gnu | ||
|
||
# shellcheck disable=SC1090 | ||
. "$HOME/.cargo/env" | ||
|
||
export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 | ||
export CARGO_PROFILE_RELEASE_CODEGEN_PANIC=abort | ||
export CARGO_PROFILE_RELEASE_STRIP=debuginfo | ||
|
||
cargo fetch --locked | ||
mkdir output | ||
|
||
cargo build -p rsjsonnet --target x86_64-unknown-linux-gnu --release --frozen | ||
mkdir output/rsjsonnet-linux-x86_64 | ||
cp target/x86_64-unknown-linux-gnu/release/rsjsonnet output/rsjsonnet-linux-x86_64/rsjsonnet | ||
|
||
cargo build -p rsjsonnet --target i686-unknown-linux-gnu --release --frozen | ||
mkdir output/rsjsonnet-linux-i686 | ||
cp target/i686-unknown-linux-gnu/release/rsjsonnet output/rsjsonnet-linux-i686/rsjsonnet |