From ca3ba139a21337add76fbf48eee3b2b1b82adaef Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Wed, 18 Mar 2020 12:54:04 +0000 Subject: Setup CI to test with various toolchains --- .github/workflows/rust.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2d78480..4c75d53 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,6 +18,7 @@ jobs: - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: + profile: minimal components: rustfmt - name: Run rustfmt uses: actions-rs/cargo@v1 @@ -36,6 +37,7 @@ jobs: - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: + profile: minimal components: clippy - name: Run clippy uses: actions-rs/cargo@v1 @@ -46,6 +48,13 @@ jobs: test: name: Run test suite runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + - 1.42.0 # Minimum supported version steps: - name: Checkout branch uses: actions/checkout@master @@ -53,6 +62,10 @@ jobs: submodules: true - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true - name: Run tests and gather coverage data uses: actions-rs/tarpaulin@v0.1 with: -- cgit v1.2.3