1on: [push] 2name: CI 3jobs: 4 build_and_test: 5 name: OS Test 6 strategy: 7 matrix: 8 rust-version: 9 - nightly 10 - "1.40" 11 os: 12 - ubuntu-latest 13 - windows-latest 14 - macos-latest 15 runs-on: ${{ matrix.os }} 16 steps: 17 - name: Checkout 18 uses: actions/checkout@v2 19 - name: Install Rust 20 uses: actions-rs/toolchain@v1 21 with: 22 toolchain: ${{ matrix.rust-version }} 23 default: true 24 - name: Build 25 uses: actions-rs/cargo@v1 26 with: 27 command: build 28 - name: Test 29 uses: actions-rs/cargo@v1 30 with: 31 command: test 32 wasm: 33 name: WASM Test Build 34 runs-on: ubuntu-latest 35 steps: 36 - name: Checkout 37 uses: actions/checkout@v2 38 - name: Install Rust 39 uses: actions-rs/toolchain@v1 40 with: 41 toolchain: nightly 42 default: true 43 - name: Install Cargo WASI 44 uses: actions-rs/cargo@v1 45 with: 46 command: install 47 args: cargo-wasi 48 - name: Build 49 uses: actions-rs/cargo@v1 50 with: 51 command: wasi 52 args: build --features nightly 53