-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Richard Zak <richard@profian.com>
- Loading branch information
Showing
4 changed files
with
24 additions
and
6 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[build] | ||
target = "wasm32-wasi" | ||
[target.wasm32-wasi] | ||
rustflags = ["--cfg", "tokio_unstable"] | ||
runner = ["enarx", "run", "--wasmcfgfile", "Enarx.toml"] |
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,14 +1,32 @@ | ||
name: Test | ||
on: [ push, pull_request ] | ||
jobs: | ||
test: | ||
test_native: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.4.0 | ||
- name: Setup Rust toolchain | ||
run: rustup show | ||
- name: cargo test | ||
- name: cargo test native | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace --all-features | ||
args: --workspace --all-features --target=x86_64-unknown-linux-musl | ||
|
||
test_wasi: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.4.0 | ||
- name: Setup Rust toolchain | ||
run: rustup show | ||
- name: install wasi | ||
run: rustup target install wasm32-wasi | ||
- name: download enarx | ||
run: curl -sLO https://github.com/enarx/enarx/releases/download/v0.6.4/enarx-0.6.4-1_amd64.deb | ||
- name: install enarx | ||
run: sudo dpkg -i enarx-0.6.4-1_amd64.deb | ||
- name: cargo test wasm32-wasi | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace --all-features --target=wasm32-wasi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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