Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Multirious committed Mar 26, 2024
1 parent f3e7915 commit 4d7e879
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
check_build_test:
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
RUSTDOCFLAGS: -D warnings

steps:
- uses: actions/checkout@v4
Expand All @@ -31,8 +33,8 @@ jobs:
target/
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.toml') }}

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly

- name: Install dependencies
if: runner.os == 'linux'
Expand All @@ -44,6 +46,9 @@ jobs:
- name: Check all features
run: cargo check-all-features

- name: Check docs
run: cargo +nightly doc --no-deps

- name: Check all examples
run: cargo check --example '*'

Expand Down

0 comments on commit 4d7e879

Please sign in to comment.