]>
Commit | Line | Data |
---|---|---|
cd74e1d9 DG |
1 | name: CI |
2 | on: [push, pull_request] | |
3 | ||
4 | jobs: | |
5 | test: | |
6 | name: Test | |
7 | runs-on: ${{ matrix.os }} | |
8 | strategy: | |
9 | matrix: | |
10 | os: [ubuntu-latest, macos-latest, windows-latest] | |
11 | steps: | |
8b3266db | 12 | - uses: actions/checkout@v1 |
cd74e1d9 DG |
13 | with: |
14 | submodules: true | |
15 | - name: Install Rust (rustup) | |
16 | shell: bash | |
17 | run: rustup update stable --no-self-update && rustup default stable | |
18 | if: matrix.os != 'macos-latest' | |
19 | - name: Install Rust (macos) | |
20 | run: | | |
21 | curl https://sh.rustup.rs | sh -s -- -y | |
22 | echo "##[add-path]$HOME/.cargo/bin" | |
23 | if: matrix.os == 'macos-latest' | |
24 | - run: cargo fetch | |
25 | working-directory: tools/wasi-headers | |
26 | - run: cargo build | |
27 | working-directory: tools/wasi-headers | |
28 | - run: cargo test | |
29 | working-directory: tools/wasi-headers | |
30 | ||
31 | rustfmt: | |
32 | name: Rustfmt | |
33 | runs-on: ubuntu-latest | |
34 | steps: | |
8b3266db | 35 | - uses: actions/checkout@v1 |
cd74e1d9 DG |
36 | with: |
37 | submodules: true | |
38 | - name: Install Rust | |
39 | run: rustup update stable && rustup default stable && rustup component add rustfmt | |
40 | - run: cargo fmt -- --check | |
41 | working-directory: tools/wasi-headers |