name: PR Cargo Check
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
cargo-check:
name: cargo check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Cargo check
run: cargo check --workspace --all-targets
- name: Cargo check (remote feature)
run: cargo check --workspace --all-targets --features remote
- name: Cargo check (standalone feature)
run: cargo check --workspace --all-targets --features standalone