-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from psyberfly/trunk
Linux binary build with Docker
- Loading branch information
Showing
7 changed files
with
357 additions
and
317 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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash -e | ||
./android.sh | ||
./darwin.sh | ||
./linux.sh | ||
exit |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/bin/bash | ||
/boltz-dart/rust/build.sh | ||
cd boltz-dart || exit 1 | ||
bash linux.sh "$VERSION" | ||
exec "$@" |
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 |
---|---|---|
@@ -1,15 +1,21 @@ | ||
#!/bin/bash | ||
ROOT="target" | ||
VERSION="0.1.2" | ||
VERSION=$1 | ||
NAME="libboltz" | ||
LINUX_DIR=$ROOT/$NAME.$VERSION/linux # final binaries stored here | ||
# aarch64-unknown-linux-gnu \ | ||
# arm-unknown-linux-gnueabi \ | ||
# armv7-unknown-linux-gnueabi \ | ||
# i686-unknown-linux-gnu \ | ||
|
||
for TARGET in \ | ||
x86_64-unknown-linux-gnu | ||
x86_64-unknown-linux-gnu | ||
# aarch64-unknown-linux-gnu install using docker image amd-64/rust:slim-bullseye requires aarch64-linux-gnu-gcc | ||
|
||
do | ||
rustup target add $TARGET | ||
TARGET_CC=x86_64-unknown-linux-gnu cargo build --target-dir $LINUX_DIR -r --target=x86_64-unknown-linux-gnu | ||
cargo build --release --target=$TARGET | ||
done | ||
|
||
mkdir -p $LINUX_DIR/x86_64 | ||
cp $ROOT/x86_64-unknown-linux-gnu/release/libboltzclient.so $LINUX_DIR/x86_64/ |
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
Oops, something went wrong.