Skip to content

Commit

Permalink
Separate build and test CI jobs
Browse files Browse the repository at this point in the history
Our dev dependencies have updated their minimum supported Rust
version (MSRV), so we now only check that the library builds on Rust
1.56. Tests are run on multiple Rust versions, as usual.

The MSRV is now also documented in the Cargo.toml file.
  • Loading branch information
mgeisler committed Mar 13, 2024
1 parent e816a1e commit 62fc0a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
strategy:
matrix:
rust:
- 1.56
- stable
- nightly
os:
Expand Down Expand Up @@ -47,6 +46,22 @@ jobs:
if: matrix.rust == 'nightly'
run: cargo check --all-targets

msrv:
name: Build MSRV
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install Rust
run: rustup default 1.56

- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build

build-documentation:
name: Build documentation
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ keywords = ["random", "text", "markov", "typography"]
categories = ["text-processing"]
license = "MIT"
edition = "2021"
rust-version = "1.56"

[dependencies]
rand = {version = "0.8.5", default-features = false, features = ["alloc"]}
Expand Down

0 comments on commit 62fc0a2

Please sign in to comment.