Files
craft-libs/.github/workflows/menu.yml
aiongg 930fcb4bae CI: next is retired; workflows trigger on main only
next's work goes into main and the branch is retired, so its triggers, the
nightly job that started the Workspace and full-test runs on next, and the
cache and concurrency rules for next's runs are removed. The Workspace
concurrency test checks the policy for main alone.
2026-11-26 05:40:12 +00:00

35 lines
1.1 KiB
YAML

name: Menu
on:
push:
branches: [main]
paths: ["crates/menu/**", "crates/keymap/**", "crates/quit/**", "Cargo.toml", "Cargo.lock", ".github/workflows/menu.yml"]
pull_request:
paths: ["crates/menu/**", "crates/keymap/**", "crates/quit/**", "Cargo.toml", "Cargo.lock", ".github/workflows/menu.yml"]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: menu-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
timeout-minutes: 15
# fmt, native clippy and the tests run in the Workspace gate on every OS.
name: Menu macOS and WASM lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: aarch64-apple-darwin, wasm32-unknown-unknown
# The macOS backend type-checks from Linux; it needs no linker or SDK.
- run: cargo clippy -p craft-menu --lib --locked --target aarch64-apple-darwin -- -D warnings
- run: cargo clippy -p craft-menu --lib --locked --target wasm32-unknown-unknown -- -D warnings