1 name: Continuous Integration Checks
3 on: [push, pull_request]
9 platform: [ ubuntu-latest, macos-latest, windows-latest ]
10 toolchain: [ stable, 1.48.0 ]
15 - platform: macos-latest
17 - platform: windows-latest
19 runs-on: ${{ matrix.platform }}
21 - name: Checkout source code
22 uses: actions/checkout@v3
23 - name: Install Rust ${{ matrix.toolchain }} toolchain
25 curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ matrix.toolchain }}
26 rustup override set ${{ matrix.toolchain }}
27 - name: Build on Rust ${{ matrix.toolchain }}
28 run: cargo build --verbose --color always
29 - name: Check formatting
31 run: rustup component add rustfmt && cargo fmt --all -- --check