CI: Set PR Label to the Arch-Specific Board

This PR changes the Labeling of PRs so that the Architecture (arm, risc-v, xtensa, ...) is specified in the Board Label. Previously the CI Workflow would set Generic Board Labels like "Area: Board support". Now it will set the Arch-Specific Board Label like "Board: arm".

The Board Label will be used by the upcoming CI Build Rules to skip unnecessary builds. So "Board: arm" will enable only the builds for `arm-01` to `arm-14`. This is explained here: https://github.com/apache/nuttx/issues/13775
This commit is contained in:
Lup Yuen Lee 2024-10-09 14:20:09 +08:00 committed by Xiang Xiao
parent 8b86f5de60
commit a38e533bfa
1 changed files with 66 additions and 4 deletions

70
.github/labeler.yml vendored
View File

@ -88,6 +88,72 @@
- changed-files:
- any-glob-to-any-file: 'arch/z80/**'
# add board labels
"Board: arm":
- changed-files:
- any-glob-to-any-file: 'boards/arm/**'
"Board: arm64":
- changed-files:
- any-glob-to-any-file: 'boards/arm64/**'
"Board: avr":
- changed-files:
- any-glob-to-any-file: 'boards/avr/**'
"Board: hc":
- changed-files:
- any-glob-to-any-file: 'boards/hc/**'
"Board: mips":
- changed-files:
- any-glob-to-any-file: 'boards/mips/**'
"Board: openrisc":
- changed-files:
- any-glob-to-any-file: 'boards/or1k/**'
"Board: renesas":
- changed-files:
- any-glob-to-any-file: 'boards/renesas/**'
"Board: risc-v":
- changed-files:
- any-glob-to-any-file: 'boards/risc-v/**'
"Board: simulator":
- changed-files:
- any-glob-to-any-file: 'boards/sim/**'
"Board: sparc":
- changed-files:
- any-glob-to-any-file: 'boards/sparc/**'
"Board: tricore":
- changed-files:
- any-glob-to-any-file: 'boards/tricore/**'
"Board: x86":
- changed-files:
- any-glob-to-any-file: 'boards/x86/**'
"Board: x86_64":
- changed-files:
- any-glob-to-any-file: 'boards/x86_64/**'
"Board: xtensa":
- changed-files:
- any-glob-to-any-file: 'boards/xtensa/**'
"Board: z16":
- changed-files:
- any-glob-to-any-file: 'boards/z16/**'
"Board: z80":
- changed-files:
- any-glob-to-any-file: 'boards/z80/**'
# add area labels
"Area: Audio":
@ -107,10 +173,6 @@
- any-glob-to-any-file: 'nuttx/drivers/wireless/bluetooth/**'
- any-glob-to-any-file: 'include/nuttx/wireless/bluetooth/**'
"Area: Board support":
- changed-files:
- any-glob-to-any-file: 'boards/**'
"Area: Build system":
- changed-files:
- any-glob-to-any-file: 'Makefile'