fix(ci): add ninja-build to dependencies in all build workflows

- Add ninja-build to package build workflow (build-openwrt-packages.yml)
- Add ninja-build to image build workflow (build-secubox-images.yml)
- Update secubox-tools/README.md with ninja-build dependency
- Update secubox-tools/local-build.sh dependency check and install instructions
- Ninja is required by OpenWrt build system for some compilation tasks

This resolves missing ninja errors in GitHub Actions builds.
This commit is contained in:
CyberMind-FR 2025-12-28 03:25:32 +01:00
parent 00f2f20c2f
commit a995b81e97
4 changed files with 5 additions and 5 deletions

View File

@ -194,7 +194,7 @@ jobs:
build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev \
libssl-dev python3-setuptools python3-dev rsync \
swig unzip zlib1g-dev file wget curl jq
swig unzip zlib1g-dev file wget curl jq ninja-build
- name: Cache OpenWrt SDK
uses: actions/cache@v4

View File

@ -148,7 +148,7 @@ jobs:
build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev \
libssl-dev python3-setuptools python3-dev rsync \
swig unzip zlib1g-dev file wget curl qemu-utils
swig unzip zlib1g-dev file wget curl qemu-utils ninja-build
- name: Clone OpenWrt
run: |

View File

@ -74,7 +74,7 @@ Build and test packages locally without pushing to GitHub. Automatically downloa
sudo apt-get install -y build-essential clang flex bison g++ gawk \
gcc-multilib g++-multilib gettext git libncurses5-dev \
libssl-dev python3-setuptools python3-dev rsync \
swig unzip zlib1g-dev file wget curl jq
swig unzip zlib1g-dev file wget curl jq ninja-build
# Optional for validation
sudo apt-get install -y shellcheck nodejs

View File

@ -117,7 +117,7 @@ check_dependencies() {
local missing_deps=()
# Build tools
for cmd in make gcc g++ git wget curl tar xz jq; do
for cmd in make gcc g++ git wget curl tar xz jq ninja; do
if ! command -v "$cmd" &> /dev/null; then
missing_deps+=("$cmd")
fi
@ -137,7 +137,7 @@ check_dependencies() {
echo " sudo apt-get install -y build-essential clang flex bison g++ gawk \\"
echo " gcc-multilib g++-multilib gettext git libncurses5-dev \\"
echo " libssl-dev python3-setuptools python3-dev rsync \\"
echo " swig unzip zlib1g-dev file wget curl jq"
echo " swig unzip zlib1g-dev file wget curl jq ninja-build"
echo ""
echo "For validation tools:"
echo " sudo apt-get install -y shellcheck nodejs"