mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
circleci: skip compiling packages not enabled
E.g. some packages are target, or arch specific, skip compiling them if
they cannot be enabled for current sdk. This should reduce false
positives for packages like docker-ce etc.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
(cherry picked from commit 4f3244db40)
This commit is contained in:
@@ -148,7 +148,16 @@ jobs:
|
|||||||
echo_green "=> Package check OK"
|
echo_green "=> Package check OK"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
make \
|
||||||
|
-f .config \
|
||||||
|
-f tmp/.packagedeps \
|
||||||
|
-f <(echo '$(info $(sort $(package-y) $(package-m)))'; echo -en 'a:\n\t@:') \
|
||||||
|
| tr ' ' '\n' >enabled-package-subdirs.txt
|
||||||
for PKG in $PKGS ; do
|
for PKG in $PKGS ; do
|
||||||
|
if ! grep -m1 -qE "(^|/)$PKG$" enabled-package-subdirs.txt; then
|
||||||
|
echo_red "===+ Building: $PKG skipped. It cannot be enabled with $SDK_FILE"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
echo_blue "===+ Building: $PKG"
|
echo_blue "===+ Building: $PKG"
|
||||||
make "package/$PKG/compile" -j3 V=s || {
|
make "package/$PKG/compile" -j3 V=s || {
|
||||||
RET=$?
|
RET=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user