Skip to content

Commit 81d7f28

Browse files
committed
Run CI for bench sub-crate
1 parent 4e0d295 commit 81d7f28

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

.github/workflows/check.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ jobs:
44
cargo:
55
name: Cargo
66
runs-on: ubuntu-latest
7-
env:
8-
CXX: clang++
9-
LLVM_CONFIG_PATH: /usr/lib/llvm-9/bin/llvm-config
107
steps:
118
- uses: actions/checkout@v2
12-
with:
13-
submodules: true
149
- name: Install stable toolchain
1510
uses: actions-rs/toolchain@v1
1611
with:
@@ -50,3 +45,32 @@ jobs:
5045
with:
5146
command: test
5247
args: --workspace --all-features --target x86_64-unknown-linux-gnu -Zbuild-std
48+
bench:
49+
name: Benchmarks
50+
runs-on: ubuntu-latest
51+
env:
52+
CXX: clang++
53+
LLVM_CONFIG_PATH: /usr/lib/llvm-9/bin/llvm-config
54+
steps:
55+
- uses: actions/checkout@v2
56+
with:
57+
submodules: true
58+
- name: Install stable toolchain
59+
uses: actions-rs/toolchain@v1
60+
with:
61+
components: clippy, rustfmt
62+
- name: Run rustfmt
63+
uses: actions-rs/cargo@v1
64+
with:
65+
command: fmt
66+
args: --manifest-path bench/Cargo.toml --all -- --check
67+
- name: Build all targets
68+
uses: actions-rs/cargo@v1
69+
with:
70+
command: bench
71+
args: --manifest-path bench/Cargo.toml --workspace --no-run --all-targets --all-features
72+
- name: Run Clippy linter
73+
uses: actions-rs/cargo@v1
74+
with:
75+
command: clippy
76+
args: --manifest-path bench/Cargo.toml --workspace --all-targets --all-features -- -D warnings

0 commit comments

Comments
 (0)