-
Notifications
You must be signed in to change notification settings - Fork 58
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
7 changed files
with
131 additions
and
25 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,13 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd ../.. | ||
|
||
echo ">> cargo build (zygote)" | ||
cd crates/polkavm-zygote | ||
cargo build --release | ||
cd ../.. | ||
|
||
echo ">> cargo run (examples, musl)" | ||
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 cargo run --target=i686-unknown-linux-musl -p hello-world-host |
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 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd ../.. | ||
|
||
echo ">> cargo test (debug)" | ||
cargo test --all | ||
|
||
echo ">> cargo test (release)" | ||
cargo test --all --release | ||
|
||
echo ">> cargo run (examples)" | ||
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 cargo run -p hello-world-host |
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,12 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd ../.. | ||
|
||
if [ "${CI_RV32E_TOOLCHAIN_AVAILABLE:-}" == 1 ]; then | ||
echo ">> cargo build (example guests)" | ||
cd examples/guests | ||
cargo build --all | ||
cd ../.. | ||
fi |
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 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd ../.. | ||
|
||
echo ">> cargo clippy" | ||
RUSTFLAGS="-D warnings" cargo clippy --all | ||
|
||
echo ">> cargo clippy (zygote)" | ||
cd crates/polkavm-zygote | ||
RUSTFLAGS="-D warnings" cargo clippy --all | ||
cd ../.. | ||
|
||
if [ "${CI_RV32E_TOOLCHAIN_AVAILABLE:-}" == 1 ]; then | ||
echo ">> cargo clippy (example guests)" | ||
cd examples/guests | ||
RUSTFLAGS="-D warnings" cargo clippy --all | ||
cd ../.. | ||
fi |
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 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd ../.. | ||
|
||
echo ">> cargo fmt" | ||
cargo fmt --check --all | ||
|
||
echo ">> cargo fmt (zygote)" | ||
cd crates/polkavm-zygote | ||
cargo fmt --check --all | ||
cd ../.. | ||
|
||
if [ "${CI_RV32E_TOOLCHAIN_AVAILABLE:-}" == 1 ]; then | ||
echo ">> cargo fmt (example guests)" | ||
cd examples/guests | ||
cargo fmt --check --all | ||
cd ../.. | ||
fi |
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,27 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -euo pipefail | ||
|
||
cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | ||
cd .. | ||
|
||
cargo test --all | ||
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 cargo run -p hello-world-host | ||
POLKAVM_TRACE_EXECUTION=1 POLKAVM_ALLOW_INSECURE=1 cargo run --target=i686-unknown-linux-musl -p hello-world-host | ||
|
||
cd crates/polkavm-zygote | ||
cargo build --release | ||
RUSTFLAGS='-D warnings' cargo clippy --all | ||
cargo fmt --check --all | ||
cd ../.. | ||
./ci/jobs/build-and-test.sh | ||
|
||
cd examples/guests | ||
cargo build | ||
RUSTFLAGS='-D warnings' cargo clippy --all | ||
cargo fmt --check --all | ||
cd ../.. | ||
case "$OSTYPE" in | ||
linux*) | ||
./ci/jobs/build-and-test-linux.sh | ||
esac | ||
|
||
RUSTFLAGS='-D warnings' cargo clippy --all | ||
cargo fmt --check --all | ||
./ci/jobs/build-guests.sh | ||
./ci/jobs/clippy.sh | ||
./ci/jobs/rustfmt.sh | ||
|
||
echo "----------------------------------------" | ||
echo "All tests finished!" |