-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (31 loc) · 955 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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