Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,36 @@ name: CI
on:
push:
branches: [main]
paths:
- src/**
- Cargo.toml
- Cargo.lock
- .github/workflows/ci.yml
pull_request:
branches: [main]
paths:
- src/**
- Cargo.toml
- Cargo.lock
- .github/workflows/ci.yml

env:
CARGO_TERM_COLOR: always

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
check:
name: Check
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo build --release
Expand All @@ -26,8 +41,9 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
Expand Down