Skip to content

Commit

Permalink
ci: fix build workflow - building docs should use nightly
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
  • Loading branch information
elpiel committed May 13, 2024
1 parent a3932c5 commit 5ff78e4
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,40 @@ concurrency:
cancel-in-progress: true

jobs:
build:
name: Lint, test and build
lint-and-docs:
name: Lint and check docs
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Rust setup (stable)
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
- name: Rust setup (nightly) for docs
uses: dtolnay/rust-toolchain@nightly


- name: Lint - rustfmt
run: cargo fmt --all -- --check

- name: Lint - clippy
run: cargo clippy --all --no-deps -- -D warnings

- name: Build
run: cargo check

- name: Test
run: cargo test

- name: Docs
env:
RUSTDOCFLAGS: -D warnings --cfg docsrs
run: cargo doc --no-deps --all-features

check-and-test:
name: Lint and check docs
runs-on: ubuntu-latest

steps:

- name: Rust setup (stable)
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2

- run: cargo check --all-features
- run: cargo test --all-features

0 comments on commit 5ff78e4

Please sign in to comment.