Skip to content

Commit 7744518

Browse files
authored
Merge pull request #348 from light-curve/ci-bench-cargo-cache
CI: use cargo cache for benchmarks
2 parents 67e30a4 + a5d2deb commit 7744518

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
- uses: actions/checkout@v4
6767
- uses: Swatinem/rust-cache@v2
6868
with:
69-
shared-key: "stable-${{ runner.os }}"
69+
shared-key: "${{ runner.os }}_stable-rust_cargo-clippy"
7070
workspaces: "light-curve"
7171
- run: cargo clippy --manifest-path=light-curve/Cargo.toml --all-targets -- -D warnings
7272

@@ -90,7 +90,7 @@ jobs:
9090
uses: taiki-e/install-action@cargo-llvm-cov
9191
- uses: Swatinem/rust-cache@v2
9292
with:
93-
shared-key: "stable-${{ runner.os }}"
93+
shared-key: "${{ runner.os }}_stable-rust_maturin-develop"
9494
workspaces: "light-curve"
9595
- name: Set up Python
9696
uses: actions/setup-python@v5
@@ -128,10 +128,10 @@ jobs:
128128
uses: actions/setup-python@v5
129129
with:
130130
python-version: "3.12"
131-
- name: Install system packages
132-
run: |
133-
sudo apt-get update
134-
sudo apt-get install -y libfftw3-dev libgsl-dev
131+
- uses: Swatinem/rust-cache@v2
132+
with:
133+
shared-key: "${{ runner.os }}_stable-rust_maturin-develop-release"
134+
workspaces: "light-curve"
135135
- name: Run benchmarks
136136
uses: CodSpeedHQ/action@v2
137137
with:
@@ -141,7 +141,7 @@ jobs:
141141
python3 -m venv venv
142142
. venv/bin/activate
143143
pip install "${{ needs.py_build_deps.outputs.output }}" pytest-codspeed
144-
maturin develop --extras=test-no-bench,test --release --no-default-features --features=ceres-source,fftw-system,gsl,mimalloc
144+
maturin develop --extras=test-no-bench,test --release
145145
python3 -mpytest -m "not (nobs or multi)" --codspeed tests/test_w_bench.py
146146
147147
msrv-build:
@@ -183,7 +183,7 @@ jobs:
183183
toolchain: ${{ steps.get_msrv.outputs.msrv }}
184184
- uses: Swatinem/rust-cache@v2
185185
with:
186-
shared-key: "msrv-${{ runner.os }}"
186+
shared-key: "${{ runner.os }}_msrv-rust_maturin-build"
187187
workspaces: "light-curve"
188188
- name: Install build_deps
189189
run: pip install "${{ needs.py_build_deps.outputs.output }}"

0 commit comments

Comments
 (0)