From 314cbfad917332bfba6a126a7956072106d3bc7f Mon Sep 17 00:00:00 2001 From: Ryan Lopopolo Date: Sun, 20 Dec 2020 08:48:19 -0800 Subject: [PATCH] Add a (unenforced) CI job for testing `boba` with MSRV Rust 1.42.0 --- .github/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2d7a235e..da632dee 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,6 +52,44 @@ jobs: # known failing since boba requires the alloc feature to build cargo test --no-default-features || : + build-msrv: + name: Build (1.42.0) + runs-on: ubuntu-latest + env: + RUSTFLAGS: -D warnings + RUST_BACKTRACE: 1 + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: "1.42.0" + profile: minimal + + - name: Compile + run: cargo build --verbose + + - name: Compile tests + run: cargo test --no-run + + - name: Test + run: cargo test + + - name: Test with all features + run: cargo test --all-features + + - name: Test with only alloc feature + shell: bash + run: cargo test --no-default-features --features alloc + + - name: Test with no default features + shell: bash + run: | + # known failing since boba requires the alloc feature to build + cargo test --no-default-features || : + rust: name: Lint and format Rust runs-on: ubuntu-latest