Skip to content

ci: bump actions/upload-artifact from 4 to 7 #53

ci: bump actions/upload-artifact from 4 to 7

ci: bump actions/upload-artifact from 4 to 7 #53

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.rust }} / ${{ matrix.os }}
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.rust == 'beta' }}
strategy:
fail-fast: false
matrix:
# Full OS matrix for stable only; MSRV and beta on ubuntu only
include:
# MSRV - ensures we don't use newer Rust features
- rust: "1.85"
os: ubuntu-latest
# Stable - primary target, all platforms
- rust: stable
os: ubuntu-latest
- rust: stable
os: macos-latest
- rust: stable
os: windows-latest
# Beta - early warning (allowed to fail)
- rust: beta
os: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: ${{ matrix.rust != '1.80' && 'rustfmt, clippy' || '' }}
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
# Formatting and clippy only on stable (lints evolve between versions)
- name: Check formatting
if: matrix.rust == 'stable'
run: cargo fmt --check
- name: Run clippy
if: matrix.rust != '1.85'
run: cargo clippy --all-features -- -D warnings
- name: Run tests (all features)
run: cargo test --all-features
- name: Run FFI tests
if: matrix.rust == 'stable'
run: cargo test --features ffi
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@v2
with:
cache-all-crates: true
- name: Install security tools
run: cargo install cargo-deny cargo-audit
- name: Check dependencies (licenses & security advisories)
run: cargo deny check
- name: Run cargo audit
run: cargo audit