Add support for LazyLock #144
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
- staging | |
- trying | |
pull_request: | |
name: Continuous integration | |
jobs: | |
tests: | |
name: Rust project | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
components: rustfmt, clippy | |
# Make sure we test with recent deps | |
- run: cargo update | |
- run: cargo build --all-features --all-targets | |
- run: cargo test --all-features | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --all-features --all-targets -- -D warnings | |
msrv: | |
name: MSRV | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: "1.70" | |
- run: cargo test --all-features | |
docs: | |
name: Documentation build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: nightly | |
- name: Build documentation | |
env: | |
# Build the docs like docs.rs builds it | |
RUSTDOCFLAGS: --cfg docsrs | |
run: cargo doc --all-features |