Skip to content

chore: bump actions/checkout to v4 to fix CI warnings #164

chore: bump actions/checkout to v4 to fix CI warnings

chore: bump actions/checkout to v4 to fix CI warnings #164

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- { toolchain: stable }
- { toolchain: beta }
- { toolchain: nightly }
steps:
- uses: actions/checkout@v4
- name: Lint code ${{ matrix.config.toolchain }}
run: |
rustup toolchain install ${{ matrix.config.toolchain }}
rustup default ${{ matrix.config.toolchain }}
rustup component add rustfmt
cargo fmt --all -- --check
test:
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- { toolchain: nightly }
steps:
- uses: actions/checkout@v4
- name: Run tests ${{ matrix.config.toolchain }}
run: |
rustup toolchain install ${{ matrix.config.toolchain }}
rustup default ${{ matrix.config.toolchain }}
cargo test --verbose
bench:
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- { toolchain: nightly }
steps:
- uses: actions/checkout@v4
- name: Run benchmarks ${{ matrix.config.toolchain }}
run: |
rustup toolchain install ${{ matrix.config.toolchain }}
rustup default ${{ matrix.config.toolchain }}
cargo bench bench