Skip to content

Commit 4344bab

Browse files
authored
ci: move codspeed bench to runs-on (#2601)
1 parent e87fedc commit 4344bab

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -225,18 +225,22 @@ jobs:
225225

226226
bench-codspeed:
227227
name: Benchmark with Codspeed
228-
runs-on: ubuntu-latest-large
228+
runs-on:
229+
- runs-on=${{ github.run_id }}
230+
- family=c7i.8xlarge
231+
- image=ubuntu24-full-x64
229232
steps:
233+
- uses: runs-on/action@v1
230234
- uses: actions/checkout@v4
231-
- uses: ./.github/actions/setup-rust
235+
# rustup is pre-installed on the ubuntu24-full-x64 image.
232236

233237
- name: Install Codspeed
234238
shell: bash
235239
run: cargo install --force cargo-codspeed --locked
236240

237241
- name: Build benchmarks
238242
env:
239-
RUSTFLAGS: "-C target-cpu=native"
243+
RUSTFLAGS: "-C target-feature=+avx2"
240244
run: |
241245
cargo codspeed build --features test-harness \
242246
--exclude bench-vortex \
@@ -252,6 +256,7 @@ jobs:
252256
uses: CodSpeedHQ/action@v3
253257
with:
254258
run: cargo codspeed run
259+
runner-version: 3.4.1-beta.1
255260
token: ${{ secrets.CODSPEED_TOKEN }}
256261

257262
license-check-and-audit-check:

0 commit comments

Comments
 (0)