-
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
3 changed files
with
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export CC_aarch64_unknown_linux_gnu=aarch64-unknown-linux-gnu-gcc | ||
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-unknown-linux-gnu-gcc | ||
export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc | ||
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc |
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 +1,6 @@ | ||
/target | ||
|
||
/release | ||
|
||
/.envrc | ||
!/.envrc.sample |
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,14 @@ | ||
#!/usr/bin/env sh | ||
|
||
set -x | ||
|
||
cross build --release --target aarch64-apple-darwin | ||
cross build --release --target x86_64-apple-darwin | ||
cross build --release --target aarch64-unknown-linux-gnu | ||
cross build --release --target x86_64-unknown-linux-gnu | ||
|
||
mkdir -p release | ||
cp target/aarch64-apple-darwin/release/uak release/uak-aarch64-apple-darwin | ||
cp target/x86_64-apple-darwin/release/uak release/uak-x86_64-apple-darwin | ||
cp target/aarch64-unknown-linux-gnu/release/uak release/uak-aarch64-unknown-linux-gnu | ||
cp target/x86_64-unknown-linux-gnu/release/uak release/uak-x86_64-unknown-linux-gnu |