-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build contract in docker * CI: add build step * Update contract builds * Update .github/workflows/tests.yml Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev> --------- Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev>
- Loading branch information
Showing
9 changed files
with
45 additions
and
1 deletion.
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
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
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit script as soon as a command fails. | ||
set -e | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
docker run \ | ||
--rm \ | ||
--mount type=bind,source=$DIR,target=/host \ | ||
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \ | ||
-w /host \ | ||
-e RUSTFLAGS='-C link-arg=-s' \ | ||
rust:latest \ | ||
/bin/bash -c "rustup target add wasm32-unknown-unknown; cargo install --force cargo-make; \ | ||
cargo make --profile mainnet build; cargo make --profile mainnet build-migration" | ||
|
||
mkdir -p res | ||
cp $DIR/bin/aurora-eth-connector-mainnet.wasm $DIR/res/ | ||
cp $DIR/bin/aurora-eth-connector-mainnet-migration.wasm $DIR/res/ |
Binary file not shown.
Binary file not shown.