Skip to content

Commit e8fcbcf

Browse files
committed
Add nightly benchmarks build
1 parent 5a7a787 commit e8fcbcf

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/check.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ jobs:
180180
with:
181181
command: clippy
182182
args: --target aarch64-unknown-linux-gnu --workspace --all-targets --all-features -- -D warnings
183-
bench:
184-
name: Benchmarks
183+
bench-stable:
184+
name: Benchmarks stable
185185
runs-on: ubuntu-latest
186186
env:
187187
CXX: clang++
@@ -199,6 +199,37 @@ jobs:
199199
with:
200200
command: fmt
201201
args: --manifest-path bench/Cargo.toml --all -- --check
202+
- name: Build all targets
203+
uses: actions-rs/cargo@v1
204+
with:
205+
command: bench
206+
args: --manifest-path bench/Cargo.toml --workspace --no-run --all-targets
207+
- name: Run Clippy linter
208+
uses: actions-rs/cargo@v1
209+
with:
210+
command: clippy
211+
args: --manifest-path bench/Cargo.toml --workspace --all-targets -- -D warnings
212+
bench-nightly:
213+
name: Benchmarks nightly
214+
runs-on: ubuntu-latest
215+
env:
216+
CXX: clang++
217+
LLVM_CONFIG_PATH: /usr/lib/llvm-12/bin/llvm-config
218+
steps:
219+
- uses: actions/checkout@v3
220+
with:
221+
submodules: true
222+
- name: Install nightly toolchain
223+
uses: actions-rs/toolchain@v1
224+
with:
225+
toolchain: nightly
226+
override: true
227+
components: clippy, rustfmt
228+
- name: Run rustfmt
229+
uses: actions-rs/cargo@v1
230+
with:
231+
command: fmt
232+
args: --manifest-path bench/Cargo.toml --all -- --check
202233
- name: Build all targets
203234
uses: actions-rs/cargo@v1
204235
with:

0 commit comments

Comments
 (0)