Skip to content

Commit

Permalink
Merge pull request #64 from artichoke/build-msrv
Browse files Browse the repository at this point in the history
Add a (unenforced) CI job for testing `boba` with MSRV Rust 1.42.0
  • Loading branch information
lopopolo authored Dec 20, 2020
2 parents 2ae9c01 + 314cbfa commit 221c690
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 221c690

Please sign in to comment.