Skip to content

Commit 1fa6701

Browse files
authored
Merge branch 'main' into save-stats
2 parents c41cb52 + 898254e commit 1fa6701

File tree

20 files changed

+1318
-230
lines changed

20 files changed

+1318
-230
lines changed

.envrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if has nix; then
2+
if ! has nix_direnv_version || ! nix_direnv_version 3.1.0; then
3+
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.1.0/direnvrc" "sha256-yMJ2OVMzrFaDPn7q8nCBZFRYpL/f0RcHzhmw/i6btJM="
4+
fi
5+
6+
use flake
7+
fi
8+
9+
source_env_if_exists .envrc.local

.github/workflows/benchmarks.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Benchmarks
2+
3+
# spell-checker:ignore codspeed dtolnay Swatinem
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- '*'
10+
11+
permissions:
12+
contents: read # to fetch code (actions/checkout)
13+
14+
# End the current execution if there is a new changeset in the PR.
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
18+
19+
jobs:
20+
benchmarks:
21+
name: Run benchmarks (CodSpeed)
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v6
25+
with:
26+
persist-credentials: false
27+
28+
- uses: dtolnay/rust-toolchain@stable
29+
30+
- uses: Swatinem/rust-cache@v2
31+
32+
- name: Install cargo-codspeed
33+
shell: bash
34+
run: cargo install cargo-codspeed --locked
35+
36+
- name: Build benchmarks
37+
shell: bash
38+
run: cargo codspeed build
39+
40+
- name: Run benchmarks
41+
uses: CodSpeedHQ/action@v4
42+
env:
43+
CODSPEED_LOG: debug
44+
with:
45+
mode: instrumentation
46+
run: cargo codspeed run > /dev/null
47+
token: ${{ secrets.CODSPEED_TOKEN }}

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android /usr/local/share/boost /usr/share/swift /var/lib/apt/lists/*
182182
183183
- name: Execute tests
184-
run: cargo test --locked --all-targets ${{ matrix.extra_args }}
184+
run: cargo test --locked --lib --bins --tests ${{ matrix.extra_args }}
185185
env:
186186
CARGO_INCREMENTAL: "0"
187187
RUSTC_WRAPPER: ""

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ tests/**/Cargo.lock
1717

1818
# VSCode Workspace files
1919
**.code-workspace
20+
21+
.direnv/
22+
result

0 commit comments

Comments
 (0)