2 on: [push, pull_request]
7 runs-on: ${{ matrix.os }}
10 os: [ubuntu-latest, macos-latest, windows-latest]
12 - uses: actions/checkout@v1
15 - name: Install Rust (rustup)
17 run: rustup update stable --no-self-update && rustup default stable
18 if: matrix.os != 'macos-latest'
19 - name: Install Rust (macos)
21 curl https://sh.rustup.rs | sh -s -- -y
22 echo "##[add-path]$HOME/.cargo/bin"
23 if: matrix.os == 'macos-latest'
25 working-directory: tools/wasi-headers
27 working-directory: tools/wasi-headers
29 working-directory: tools/wasi-headers
33 runs-on: ubuntu-latest
35 - uses: actions/checkout@v1
39 run: rustup update stable && rustup default stable && rustup component add rustfmt
40 - run: cargo fmt -- --check
41 working-directory: tools/wasi-headers