Files
wehub-resource-sync 91e75e620b
CI: cua-driver distro-compat matrix / debian:12 (glibc 2.36) (push) Has been cancelled
CI: SPDX Headers / Check SPDX headers (warn-only) (push) Has been cancelled
CD: Docs MCP Server / build (linux/amd64) (push) Has been cancelled
CD: Docs MCP Server / build (linux/arm64) (push) Has been cancelled
CD: Docs MCP Server / merge (push) Has been cancelled
CI: cua-driver distro-compat matrix / Resolve release version (push) Has been cancelled
CI: cua-driver distro-compat matrix / fedora:41 (glibc 2.40) (push) Has been cancelled
CI: cua-driver distro-compat matrix / rockylinux:9 (glibc 2.34) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:22.04 (glibc 2.35) (push) Has been cancelled
CI: cua-driver distro-compat matrix / ubuntu:24.04 (glibc 2.39) (push) Has been cancelled
CI: cua-driver distro-compat matrix / Distro compat summary (push) Has been cancelled
CI: Rust Linux unit / Rust Linux unit and compile (push) Has been cancelled
CI: Rust Windows unit / Rust Windows unit and compile (push) Has been cancelled
CI: Nix Linux Rust source / Nix / compositor build (push) Has been cancelled
CI: Nix Linux Rust source / Nix / driver package (push) Has been cancelled
CI: Nix Linux Rust source / Nix / Rust unit tests (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:19 +08:00

55 lines
2.9 KiB
YAML

name: "CI: SPDX Headers"
# Verifies that every cua-driver source file carries an SPDX-License-Identifier
# header. Currently warn-only (continue-on-error: true) while we stamp the
# existing tree in a separate sweep PR; will be flipped to enforcing once the
# tree is clean. See scripts/spdx-headers.py for the applier and the runbook.
on:
pull_request:
paths:
- "libs/cua-driver/**/*.swift"
- "libs/cua-driver/**/*.rs"
- "scripts/spdx-headers.py"
- ".github/workflows/ci-spdx-headers.yml"
push:
branches: [main]
paths:
- "libs/cua-driver/**/*.swift"
- "libs/cua-driver/**/*.rs"
- "scripts/spdx-headers.py"
jobs:
check:
name: Check SPDX headers (warn-only)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check SPDX headers
id: spdx
continue-on-error: true
run: python3 scripts/spdx-headers.py --check libs/cua-driver
- name: Show help if check failed
if: steps.spdx.outcome == 'failure'
run: |
echo ""
echo "╔══════════════════════════════════════════════════════════════════╗"
echo "║ Missing SPDX-License-Identifier headers ║"
echo "╠══════════════════════════════════════════════════════════════════╣"
echo "║ ║"
echo "║ This check is WARN-ONLY today; it will become enforcing once ║"
echo "║ the existing tree has been stamped in a follow-up sweep PR. ║"
echo "║ ║"
echo "║ To stamp new files locally: ║"
echo "║ ║"
echo "║ python3 scripts/spdx-headers.py --apply libs/cua-driver ║"
echo "║ ║"
echo "║ To preview without writing: ║"
echo "║ ║"
echo "║ python3 scripts/spdx-headers.py --dry-run libs/cua-driver ║"
echo "║ ║"
echo "╚══════════════════════════════════════════════════════════════════╝"