Merge pull request #23 from bandprotocol/support-rust-1.70 #162
Workflow file for this run
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: Owasm Workflow | |
on: push | |
jobs: | |
wasm-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
- name: Install Rust and rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install Wabt (wat2wasm) | |
run: | | |
wget https://github.com/WebAssembly/wabt/releases/download/1.0.29/wabt-1.0.29-ubuntu.tar.gz | |
tar -zxf wabt-1.0.29-ubuntu.tar.gz | |
sudo cp wabt-1.0.29/bin/wat2wasm /usr/local/bin | |
- name: Check cargo cache | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
target | |
key: ${{ runner.os }}-owasm-${{ hashFiles('**/Cargo.lock') }} | |
- name: Run owasm tests | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --manifest-path Cargo.toml --all |