Skip to content

fix: cross-platform signal handling in watcher (Windows ctrl_c) #6

fix: cross-platform signal handling in watcher (Windows ctrl_c)

fix: cross-platform signal handling in watcher (Windows ctrl_c) #6

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
target: x86_64-unknown-linux-gnu
- os: macos-latest
target: aarch64-apple-darwin
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
components: clippy${{ matrix.os == 'ubuntu-24.04' && ', rustfmt' || '' }}
- name: Cache cargo registry and target
uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --workspace --target ${{ matrix.target }}
- name: Clippy
run: cargo clippy --workspace --target ${{ matrix.target }} -- -D warnings
- name: Test
run: cargo test --workspace --target ${{ matrix.target }}
- name: Format check
if: matrix.os == 'ubuntu-24.04'
run: cargo fmt --check