Skip to content

Commit

Permalink
clean up github CI workflow + rust-toolchain.toml to match quanta
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Apr 5, 2023
1 parent 8775cbf commit 1d92d57
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
interval: weekly
open-pull-requests-limit: 10
69 changes: 17 additions & 52 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,21 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
run: rustup default nightly
- name: Check Formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
run: cargo fmt --all -- --check
feature-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions/checkout@v3
- name: Install Rust Stable
run: rustup default stable
- name: Install cargo-hack
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-hack
run: cargo install cargo-hack
- name: Check Feature Matrix
uses: actions-rs/cargo@v1
with:
command: hack
args: build --all --all-targets --feature-powerset
run: cargo hack build --all --all-targets --feature-powerset
test:
name: Test ${{ matrix.rust_version }}/${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -49,49 +33,30 @@ jobs:
rust_version: ['1.60.0', 'stable', 'nightly']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install Rust ${{ matrix.rust_version }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_version }}
override: true
run: rustup default ${{ matrix.rust_version }}
- name: Run Tests
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --workspace --exclude=metrics-observer
run: cargo test --all-features --workspace --exclude=metrics-observer
docs:
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Rust Nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rust-docs
run: rustup default nightly
- name: Check Docs
uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features --workspace --exclude=metrics-observer --no-deps
run: cargo doc --all-features --workspace --exclude=metrics-observer --no-deps
bench:
name: Bench ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
run: rustup default stable
- name: Run Benchmarks
uses: actions-rs/cargo@v1
with:
command: bench
args: --all-features --workspace --exclude=metrics-observer
run: cargo bench --all-features --workspace --exclude=metrics-observer
2 changes: 2 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "stable"

0 comments on commit 1d92d57

Please sign in to comment.