Skip to content

Make ada-rust compile for wasm32-wasi and -unknown #86

Make ada-rust compile for wasm32-wasi and -unknown

Make ada-rust compile for wasm32-wasi and -unknown #86

Workflow file for this run

name: CI
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches:
- main
paths-ignore:
- '**/*.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
jobs:
check:
name: Check
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
- os: ubuntu-latest
- os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: ci
save-if: ${{ github.ref_name == 'main' }}
- run: rustup show
- name: Cargo Check
shell: bash
run: |
cargo check --all-targets --all-features --locked
cargo test --no-run --all-targets --all-features
format:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: rustup show
- run: cargo fmt --all -- --check
lint:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: ci
save-if: false
- run: rustup show
- run: cargo clippy -- -D warnings
test:
name: Test
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
- os: ubuntu-latest
- os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: ci
save-if: false
- run: rustup show
- run: cargo test