Skip to content

Commit

Permalink
Merge pull request #64 from jakoschiko/stable-benches
Browse files Browse the repository at this point in the history
Migrate benches to divan
  • Loading branch information
JesperAxelsson authored Sep 7, 2024
2 parents a9075f2 + ed7d0e1 commit 4f4af91
Show file tree
Hide file tree
Showing 8 changed files with 884 additions and 511 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ jobs:
matrix:
rust:
- version: 1.58.1
run-all: false
integration-tests: false
- version: 1.80.1
run-all: true
integration-tests: true

steps:
- uses: actions/checkout@v2
Expand All @@ -34,25 +34,24 @@ jobs:
rustup default ${{ matrix.rust.version }}
- name: Check lib
run: $HOME/.cargo/bin/cargo check --lib

- name: Check all
# We can't use --all-targets because it includes benches which requires nightly compiler
run: $HOME/.cargo/bin/cargo check --workspace --lib --bins --examples --tests
if: ${{ matrix.rust.run-all }}

- name: Clippy
# We can't use --all-targets because it includes benches which requires nightly compiler
run: $HOME/.cargo/bin/cargo clippy --workspace --lib --bins --examples --tests
if: ${{ matrix.rust.run-all }}

- name: Check Format
run: $HOME/.cargo/bin/cargo fmt --check
if: ${{ matrix.rust.run-all }}
run: |
$HOME/.cargo/bin/cargo check --all-targets --no-default-features
$HOME/.cargo/bin/cargo check --all-targets
$HOME/.cargo/bin/cargo clippy --all-targets
$HOME/.cargo/bin/cargo fmt --check
$HOME/.cargo/bin/cargo test
env:
RUST_BACKTRACE: 1

- name: Test
run: $HOME/.cargo/bin/cargo test --workspace
if: ${{ matrix.rust.run-all }}
- name: Check integration tests
run: |
pushd integration_tests
$HOME/.cargo/bin/cargo check --all-targets
$HOME/.cargo/bin/cargo clippy --all-targets
$HOME/.cargo/bin/cargo fmt --check
$HOME/.cargo/bin/cargo test
popd
if: ${{ matrix.rust.integration-tests }}
env:
RUST_BACKTRACE: 1

278 changes: 5 additions & 273 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 0 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ serde = { version = "1.0", optional = true, default-features = false }

[dev-dependencies]
rand = "0.8.5"
indexmap = "1.8.2"

[package.metadata.docs.rs]
features = ["serde"]

[workspace]
resolver = "2"
members = [
"integration_tests/random_ops",
"integration_tests/serde",
]
Loading

0 comments on commit 4f4af91

Please sign in to comment.