summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNadrieril2020-03-18 12:54:04 +0000
committerNadrieril2020-03-18 12:54:45 +0000
commitca3ba139a21337add76fbf48eee3b2b1b82adaef (patch)
tree7005a8eac47b8758ddf07e091a7fa3dc3d0d7c47
parentf90f00c38861a49eba950a59424be8796f266524 (diff)
Setup CI to test with various toolchains
-rw-r--r--.github/workflows/rust.yml13
-rw-r--r--README.md2
-rw-r--r--rust-toolchain2
3 files changed, 16 insertions, 1 deletions
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