Skip to content

Commit ef19d8d

Browse files
committed
chore(criterion_compat): fork criterion from crates.io
Signed-off-by: not-matthias <[email protected]>
1 parent e40765d commit ef19d8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+15430
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "dc2b06cd31f7aa34cff6a83a00598e0523186dad"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
indent_style = space
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Security audit
2+
on:
3+
push:
4+
paths:
5+
- '**/Cargo.toml'
6+
- '**/Cargo.lock'
7+
jobs:
8+
security_audit:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions-rs/audit-check@v1
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
- version-0.4
9+
10+
name: tests
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
ci:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
rust:
20+
- stable
21+
- 1.64.0 # MSRV
22+
- nightly
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: actions-rs/toolchain@v1
28+
name: Setup rust toolchain
29+
with:
30+
profile: minimal
31+
toolchain: ${{ matrix.rust }}
32+
override: true
33+
components: rustfmt, clippy
34+
35+
- uses: Swatinem/rust-cache@v2
36+
name: Load dependencies from cache
37+
38+
- uses: actions-rs/cargo@v1
39+
name: Build with stable features
40+
with:
41+
command: build
42+
args: --features stable
43+
44+
- uses: actions-rs/cargo@v1
45+
if: ${{ matrix.rust == 'nightly' }}
46+
name: Build with unstable features
47+
with:
48+
command: build
49+
args: --all-features
50+
51+
- uses: actions-rs/cargo@v1
52+
name: Build with minimal features
53+
with:
54+
command: build
55+
args: --no-default-features
56+
57+
- uses: actions-rs/cargo@v1
58+
name: Test with stable features
59+
with:
60+
command: test
61+
args: --features stable
62+
63+
- uses: actions-rs/cargo@v1
64+
name: Test with minimal features
65+
with:
66+
command: test
67+
args: --no-default-features
68+
69+
- uses: actions-rs/cargo@v1
70+
name: Check for non-standard formatting
71+
if: ${{ matrix.rust == 'stable' }}
72+
with:
73+
command: fmt
74+
args: --all -- --check
75+
76+
- uses: actions-rs/cargo@v1
77+
name: Check for clippy hints
78+
if: ${{ matrix.rust == 'stable' }}
79+
with:
80+
command: clippy
81+
args: -- -D warnings
82+
83+
- name: Test run targeting WASI
84+
run: |
85+
curl https://wasmtime.dev/install.sh -sSf | bash
86+
source ~/.bashrc
87+
export PATH=$HOME/.wasmtime/bin/:$PATH
88+
cargo install cargo-wasi
89+
cargo wasi bench --no-default-features -- --test
90+
91+
nextest-compat:
92+
name: Check compatibility with nextest
93+
runs-on: ubuntu-latest
94+
strategy:
95+
matrix:
96+
rust:
97+
- stable
98+
99+
steps:
100+
- uses: actions/checkout@v2
101+
102+
- uses: actions-rs/toolchain@v1
103+
with:
104+
profile: minimal
105+
toolchain: ${{ matrix.rust }}
106+
override: true
107+
components: rustfmt, clippy
108+
109+
- uses: Swatinem/rust-cache@v1
110+
111+
- uses: taiki-e/install-action@nextest
112+
113+
- run: ci/nextest-compat.sh
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.criterion
2+
Cargo.lock
3+
target
4+
5+
**/.*.sw*

0 commit comments

Comments
 (0)