Split the old ci.yml into two focused workflows so the ESP-IDF firmware build only runs when the change actually touches firmware. - static-checks.yml: repository/host checks on every PR, push to main, and manual dispatch. - firmware-checks.yml: ESP-IDF build with paths-ignore for docs/**, plays/**, skills/**, and *.md so documentation-only changes skip the firmware build. assets/** is intentionally not ignored (may embed fonts/images/audio). - Update CI-validation.md (+ zh_CN) to describe the two workflows, the path filtering, and the required-check compatibility caveat.
31 lines
679 B
YAML
31 lines
679 B
YAML
name: Static checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: static-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
static:
|
|
name: Repository and host checks
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
|
|
- name: Install verified actionlint
|
|
run: |
|
|
actionlint_bin="$(./tools/install-actionlint.sh "$RUNNER_TEMP/actionlint")"
|
|
echo "ACTIONLINT_BIN=${actionlint_bin}" >> "$GITHUB_ENV"
|
|
|
|
- name: Validate repository and run host tests
|
|
run: ./tools/validate.sh --static
|