CI: build: add support for external toolchains from stable branch
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 28 Nov 2022 11:44:01 +0000 (12:44 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 4 Dec 2022 16:37:01 +0000 (17:37 +0100)
commit47519a574c9c81bbbaf0338f37d47abf872ccab0
tree6076b84d59d6895992aca8e59e3e49918c933936
parent05c3ee608fdef99f54431cfb6eb53ef7936137c5
CI: build: add support for external toolchains from stable branch

Add support to use external toolchains from stable branch if we are
testing commit targeting stable openwrt branch in kernel and packages
workflow.

With pr the target branch is parsed and the right toolchain is used.

To use the stable toolchain for local testing the branch needs to have
the prefix openwrt-[0-9][0-9].[0-9][0-9]- (example openwrt-21.02-fixup)

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit e24a1e6f6d7f08fb766eb11b8008f8fc5b72d072)
.github/workflows/build.yml