diff options
| author | Nicholas Rodrigues Lordello <[email protected]> | 2021-09-01 05:48:06 +0000 |
|---|---|---|
| committer | Nicholas Rodrigues Lordello <[email protected]> | 2021-09-01 05:48:06 +0000 |
| commit | 10097e446745e8d443fc28323b7e58ae3e8167cf (patch) | |
| tree | 70410e74dc49f9f1d47fcc5700ef81bc95b34875 /.github/workflows/rust.yml | |
| parent | a56b1be2ec363ef4438e3692b4b120b8b1d2e86d (diff) | |
Refactor test code and CI
Diffstat (limited to '.github/workflows/rust.yml')
| -rw-r--r-- | .github/workflows/rust.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 14e9c92..67bb073 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,7 +12,6 @@ env: jobs: check: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Lint @@ -22,3 +21,14 @@ jobs: - name: Test run: | cargo test + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build + run: | + curl -sL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sdk_12.0_amd64.deb -o /tmp/wasi-sdk.deb + sudo dpkg -i /tmp/wasi-sdk.deb + rustup target add wasm32-wasi + CC=/opt/wasi-sdk/bin/clang cargo build --target wasm32-wasi |
