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)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 4 Dec 2022 15:28:27 +0000 (16:28 +0100)
commit69c0c3c2f904279d1c687cd7a42d82987c99b3e7
tree2aa98a8b8320940bba067ce8e93c4b2e5b574068
parent40536320ef2f30e3872ba2e1748efc3c8cb0e06d
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