Skip to content

fix(ci): write Windows sha256 as LF #15

fix(ci): write Windows sha256 as LF

fix(ci): write Windows sha256 as LF #15

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
jobs:
checks:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Install cargo-deny
uses: taiki-e/install-action@v2
with:
tool: cargo-deny
- name: Run CI checks (Linux/macOS)
if: runner.os != 'Windows'
run: bash scripts/ci-checks.sh
- name: Run CI checks (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: pwsh scripts/ci-checks.ps1
audit:
name: cargo-audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: cargo-audit
- run: cargo audit
msrv:
name: MSRV (Rust 1.88)
runs-on: ubuntu-latest
# Verifies the declared `rust-version`. Lints are capped to `warn` here so
# this stays a pure compile/edition/dependency gate — the `checks` job
# enforces `-D warnings` on stable.
env:
RUSTFLAGS: --cap-lints=warn
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@1.88
- uses: Swatinem/rust-cache@v2
- run: cargo build --workspace --all-features --locked