A Windows job on the pinned toolchain: clippy with -D warnings on the default and the --all-features (diagnostics) build, then cargo test --workspace, which includes the asset-policy test. main did not build its tests: scalar_bit_tests_lower called lowers() without the rsrc2 argument a parallel change added (0, no input registers). Also drops a double parenthesis clippy flagged in an xasync test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
34 lines
816 B
YAML
34 lines
816 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ci-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: windows-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
# The version and components pinned in rust-toolchain.toml.
|
|
- run: rustup toolchain install
|
|
- uses: Swatinem/rust-cache@v2
|
|
- name: Clippy
|
|
run: cargo clippy --workspace --all-targets --locked -- -D warnings
|
|
- name: Clippy, diagnostics build
|
|
run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
|
|
# Includes xtask's repository_passes_policy, the asset-policy check.
|
|
- name: Tests
|
|
run: cargo test --workspace --locked
|