name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
NIGHTLY: nightly-2025-03-02
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install nightly
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.NIGHTLY }}
components: rust-src, rustc-dev, llvm-tools-preview
- name: Stable tests
run: cargo test
- name: Nightly tests
run: cargo +${{ env.NIGHTLY }} test --features simd --features rustc
formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check formatting
run: cargo fmt --check
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check lints
run: cargo clippy --all -- -D warnings