Skip to content

Commit 29876d7

Browse files
committed
initial commit
0 parents  commit 29876d7

Some content is hidden

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

67 files changed

+4324
-0
lines changed

.github/workflows/ci.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
8+
concurrency:
9+
group: ${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
format:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: Swatinem/rust-cache@v2
18+
- uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
components: rustfmt
22+
- run: cargo fmt --all -- --check
23+
24+
lint:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: Swatinem/rust-cache@v2
29+
- uses: actions-rs/toolchain@v1
30+
with:
31+
toolchain: stable
32+
components: clippy
33+
- run: cargo clippy --all-targets -- -D warnings
34+
- run: cargo clippy --all-targets -- -D warnings --cfg codspeed
35+
36+
tests:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- uses: actions/checkout@v3
40+
- uses: Swatinem/rust-cache@v2
41+
- uses: actions-rs/toolchain@v1
42+
with:
43+
toolchain: stable
44+
- run: cargo test --all
45+
46+
compat-integration-test:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v3
50+
- uses: actions-rs/toolchain@v1
51+
with:
52+
toolchain: stable
53+
- uses: Swatinem/rust-cache@v2
54+
- run: cargo install --path crates/cargo-codspeed
55+
56+
- run: cargo codspeed build -p codspeed
57+
- run: cargo codspeed build -p codspeed-bencher-compat
58+
- run: cargo codspeed build -p codspeed-criterion-compat
59+
60+
- name: Run the benchmarks
61+
uses: CodSpeedHQ/action@feat/bundled-upload
62+
with:
63+
run: cargo codspeed run
64+
token: ${{ secrets.CODSPEED_TOKEN }}
65+
upload_url: https://api.staging.preview.codspeed.io/upload

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
callgrind.out*

0 commit comments

Comments
 (0)