Merge pull request #21 from essa-project/dependabot/cargo/webpki-0.22.2 #94
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
name: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test_wasmedge: | |
name: "Test (wasmedge)" | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- name: "Build WasmEdge" | |
run: curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: "Check Rust code" | |
run: cargo check --workspace | |
- name: "Run cargo clippy" | |
run: cargo clippy --workspace | |
- name: "Build Rust code" | |
run: cargo build --workspace --exclude essa-test-function | |
- name: "Build test-function" | |
run: cargo build --release -p essa-test-function --target wasm32-wasi | |
- name: "Test Rust code" | |
run: source $HOME/.wasmedge/env && cargo test --workspace --exclude essa-test-function | |
timeout-minutes: 10 | |
test_wasmtime: | |
name: "Test (wasmtime)" | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: "Check Rust code" | |
run: cargo check --workspace --no-default-features --features wasmtime_executor | |
- name: "Run cargo clippy" | |
run: cargo clippy --workspace --no-default-features --features wasmtime_executor | |
- name: "Build Rust code" | |
run: cargo build --workspace --exclude essa-test-function --no-default-features --features wasmtime_executor | |
- name: "Build test-function" | |
run: cargo build --release -p essa-test-function --target wasm32-wasi | |
- name: "Test Rust code" | |
run: cargo test --workspace --exclude essa-test-function --no-default-features --features wasmtime_executor | |
timeout-minutes: 10 |