-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Execute trait, add CI workflow for wasm helper crate
Signed-off-by: Marin Veršić <[email protected]>
- Loading branch information
Showing
17 changed files
with
147 additions
and
490 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 |
---|---|---|
|
@@ -9,6 +9,9 @@ on: | |
- "**.toml" | ||
- "**.yml" | ||
|
||
# Not part of the workspace | ||
- "!wasm/**" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
|
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,44 @@ | ||
name: I2::Dev::Wasm | ||
|
||
defaults: | ||
run: | ||
working-directory: wasm | ||
|
||
on: | ||
pull_request: | ||
branches: [iroha2-dev] | ||
paths: | ||
- "wasm/**.rs" | ||
- "wasm/**.json" | ||
- "wasm/**.toml" | ||
- "wasm/**.yml" | ||
|
||
env: | ||
RUSTC_BOOTSTRAP: 1 | ||
|
||
jobs: | ||
wasm32: | ||
runs-on: [self-hosted, Linux] | ||
container: | ||
image: 7272721/i2-ci:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: Swatinem/rust-cache@v1 | ||
|
||
# Static analysis | ||
- name: Format check | ||
run: cargo +nightly-2021-12-02 fmt --all -- --check | ||
- name: Static analysis without features | ||
run: cargo lints clippy --benches --tests --examples --quiet --no-default-features | ||
if: always() | ||
- name: Static analysis with all features enabled | ||
run: cargo lints clippy --benches --tests --examples --quiet --all-features | ||
if: always() | ||
|
||
- name: Verify iroha_wasm still supports no_std | ||
run: cargo nono check --package iroha_wasm | ||
if: always() | ||
|
||
# Tests | ||
- name: Run tests | ||
run: mold -run cargo test --tests --quiet --no-fail-fast |
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 |
---|---|---|
|
@@ -11,6 +11,9 @@ on: | |
- "**.toml" | ||
- "**.yml" | ||
|
||
# Not part of the workspace | ||
- "!wasm/**" | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
|
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
**/blocks/ | ||
**/*.rs.bk | ||
**/rusty-tags.vi | ||
/**/Cargo.lock | ||
|
||
config/__pycaсhe__ | ||
**/__pycache__/* | ||
|
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 |
---|---|---|
|
@@ -28,5 +28,3 @@ members = [ | |
"version", | ||
"version/derive", | ||
] | ||
|
||
exclude = ["wasm"] |
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,5 @@ | ||
[build] | ||
target = "wasm32-unknown-unknown" | ||
|
||
[target.wasm32-unknown-unknown] | ||
runner = "webassembly-test-runner" |
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.