From 65e838e31b9e62ebcf21dd7bddbe580fb5cf85c6 Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Wed, 9 Oct 2024 14:20:09 +0800 Subject: [PATCH] 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 --- .github/labeler.yml | 70 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 66 insertions(+), 4 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index a13f0c59ccb68..5f6363b0e60a4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -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'