Skip to content

Commit eb9e21c

Browse files
committed
Update basic benchmarks in CI.
1 parent f6c7d3b commit eb9e21c

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

.github/workflows/bench.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
# TODO: Change back to dispatch
4+
on:
5+
[push, pull_request, workflow_dispatch]
6+
7+
jobs:
8+
bench:
9+
name: Bench ${{matrix.os}}
10+
runs-on: ${{matrix.os}}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest, windows-latest]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
- uses: dtolnay/rust-toolchain@stable
20+
21+
- if: matrix.os == 'ubuntu-latest'
22+
name: Get Linux CPU Info
23+
run: cat /proc/cpuinfo
24+
shell: bash
25+
26+
- if: matrix.os == 'macos-latest'
27+
name: Get macOS CPU Info
28+
run: sysctl -a | grep cpu
29+
shell: bash
30+
31+
- if: matrix.os == 'windows-latest'
32+
name: Get Windows CPU Info
33+
run: wmic cpu list /format:list
34+
shell: bash
35+
36+
# TODO: Restore later
37+
# - run: cargo --version
38+
# - run: cargo check
39+
# - run: cargo test
40+
# - run: cd extras/simple-bench
41+
# TODO: Need 3 OSes

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
rust: [1.63.0, stable, nightly]
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
with:
1717
submodules: recursive
1818
- uses: dtolnay/rust-toolchain@master

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Lint
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212
with:
1313
submodules: recursive
1414
- uses: dtolnay/rust-toolchain@master

0 commit comments

Comments
 (0)