Skip to content

Commit

Permalink
CI: Set PR Label to the Arch-Specific Board
Browse files Browse the repository at this point in the history
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: apache#13775
  • Loading branch information
lupyuen committed Oct 9, 2024
1 parent ecc2d47 commit 65e838e
Showing 1 changed file with 66 additions and 4 deletions.
70 changes: 66 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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'
Expand Down

0 comments on commit 65e838e

Please sign in to comment.