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 +++++++++++++ README.md | 2 ++ rust-toolchain | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) 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: diff --git a/README.md b/README.md index 551aeb1..dc5a07e 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,8 @@ expected_map.insert("y".to_string(), 2); assert_eq!(deserialized_map, expected_map); ``` +`dhall` requires Rust >= 1.42.0 + ## Standard-compliance This implementation currently supports most of the [Dhall diff --git a/rust-toolchain b/rust-toolchain index a50908c..2bf5ad0 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.42.0 +stable -- cgit v1.2.3