-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (28 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
28 lines (28 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
# CI runners are generic x86-64; the repo's .cargo/config.toml
# pins target-cpu=znver5 for local AVX-512 codegen, which SIGILLs
# on the Actions runner CPU. Override to a portable baseline that
# still keeps AVX2 so the lints + tests are meaningful.
RUSTFLAGS: "-C target-cpu=x86-64-v3"
steps:
- uses: actions/checkout@v5
- name: install pinned nightly (voltic core uses std::simd)
# Pinned snapshot. The unpinned `nightly` channel drifts rustfmt
# and clippy rules between runs, which has historically broken
# CI on unchanged code. Bump deliberately, not by accident.
run: |
rustup toolchain install nightly-2026-05-12 --profile minimal --component rustfmt,clippy
rustup default nightly-2026-05-12
- run: cargo fmt --check
- run: cargo clippy --all-targets -- -D warnings
- run: cargo test --release
- name: quick benchmark smoke run
run: cargo run --release --bin bench -- --n 20000