Skip to content

Commit

Permalink
simplify CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilken committed Dec 25, 2022
1 parent 72c5263 commit be6ee91
Showing 1 changed file with 8 additions and 39 deletions.
47 changes: 8 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,56 +30,25 @@ jobs:
args: --all -- --check

test:
name: Test ${{ matrix.rust }} on ${{ matrix.os }}
strategy:
matrix:
rust:
- stable
- beta
- nightly
os:
- ubuntu-latest
- windows-latest
- macOS-latest
include:
- rust: stable
features: ''
- rust: beta
features: ''
- rust: nightly
features: ''
benches: true
runs-on: ${{ matrix.os }}
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Rust (${{ matrix.rust }})
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
toolchain: stable
override: true
- name: Build only
if: matrix.build-only
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }}
- name: Test
if: matrix.build-only != true
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }}
- name: Test all benches
if: matrix.benches && matrix.build-only != true
- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --benches ${{ matrix.features }}

doc:
name: Build docs
needs: [style, test]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -90,8 +59,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: cargo rustdoc
- name: cargo rustdoc -- -D rustdoc::broken_intra_doc_links
uses: actions-rs/cargo@v1
with:
command: rustdoc
args: -- -D intra-doc-link-resolution-failure
args: -- -D rustdoc::broken_intra_doc_links

0 comments on commit be6ee91

Please sign in to comment.