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 15:04:27 +0000 (16:04 +0100)
commite24a1e6f6d7f08fb766eb11b8008f8fc5b72d072
treeeb215ab25991918f4386e69b224b530f602cd061
parentabe8a4824210966e0899724bf4561a89216a1e36
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>
.github/workflows/build.yml