Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions .github/workflows/benches.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Benches

on:
push:
branches: [ master ]
pull_request:
paths:
- ".github/workflows/benches.yml"
- "benches/**"
branches: [ master ]
schedule:
- cron: '0 0 * * SUN'

jobs:
benches:
Expand All @@ -24,3 +26,16 @@ jobs:
run: cargo fmt -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings

test-benches:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install toolchain
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
- name: Test benches
working-directory: ./benches
run: |
cargo test --benches
10 changes: 3 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:

steps:
- uses: actions/checkout@v5
- name: MSRV
if: ${{ matrix.variant == 'MSRV' }}
run: cp Cargo.lock.msrv Cargo.lock
- name: Not MSRV
if: ${{ matrix.variant != 'MSRV' }}
run: cargo generate-lockfile --ignore-rust-version
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -73,10 +73,6 @@ jobs:
if: ${{ matrix.variant == 'minimal_versions' }}
run: |
cargo generate-lockfile -Z minimal-versions
- name: Maybe nightly
if: ${{ matrix.toolchain == 'nightly' }}
run: |
cargo test --target ${{ matrix.target }} --benches
- name: Test
run: |
cargo test --target ${{ matrix.target }} --manifest-path rand_hc/Cargo.toml --all-features
Expand Down
Loading