Skip to content

Pruned dead code, bumped version, fixed typos #50

Pruned dead code, bumped version, fixed typos

Pruned dead code, bumped version, fixed typos #50

Workflow file for this run

name: CI
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
jobs:
test:
name: Test — ${{ matrix.arch_label }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# ── macOS ──────────────────────────────────────────────────────────
# macos-13 (x86_64) was retired 2025-12-04. There are no longer any
# free x86_64 macOS hosted runners. We build for x86_64-apple-darwin
# on an Apple Silicon runner instead; the resulting binary runs under
# Rosetta 2, which is present on all GitHub macOS-15 runners.
- target: x86_64-apple-darwin
os: macos-15
arch_label: macos-x86_64
- target: aarch64-apple-darwin
os: macos-15
arch_label: macos-arm64
# ── Linux ──────────────────────────────────────────────────────────
- target: x86_64-unknown-linux-gnu
os: ubuntu-24.04
arch_label: linux-x86_64
# ubuntu-24.04-arm is GA for public repositories (free).
# For private repositories use a paid arm64 larger runner instead.
- target: aarch64-unknown-linux-gnu
os: ubuntu-24.04-arm
arch_label: linux-arm64
# ── Windows ────────────────────────────────────────────────────────
- target: x86_64-pc-windows-msvc
os: windows-latest
arch_label: windows-x86_64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git/db
target
key: ${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.target }}-cargo-
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build
run: cargo build --target ${{ matrix.target }} --verbose
- name: Run tests
run: cargo test --target ${{ matrix.target }} --verbose
# Clippy and rustfmt only need to run once — use the Linux x86_64 job.
- name: Clippy
if: matrix.arch_label == 'linux-x86_64'
run: cargo clippy --target ${{ matrix.target }} -- -D warnings
- name: Check formatting
if: matrix.arch_label == 'linux-x86_64'
run: cargo fmt --check