Skip to content

Fix CI: update Rust version to 1.89+, disable mold linker, use rust-c… #23

Fix CI: update Rust version to 1.89+, disable mold linker, use rust-c…

Fix CI: update Rust version to 1.89+, disable mold linker, use rust-c… #23

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
# Disable mold linker for CI (not available on GitHub Actions runners)
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: ""
RUSTFLAGS: ""
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.89.0, stable]
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.rust }}
- name: Check formatting
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose
security:
name: Security audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Install cargo-audit
run: cargo install cargo-audit
- name: Run security audit
run: cargo audit