Skip to content

Commit a848b45

Browse files
committed
[ci] Fix missing usign binary during package indexing
- Build tools/usign/compile before running make package/index - Only build usign if binary is not already present in staging_dir/host/bin - Fixes 'usign: No such file or directory' error in CI - Handles both CI_CACHE and non-cache scenarios The error occurred because make package/index requires the usign binary to exist even when SIGNED_PACKAGES= is set to skip signing. This change ensures usign is built when needed, particularly when CI_CACHE is set and tools/install is skipped.
1 parent 49366ad commit a848b45

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

runbuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ fi
5252

5353
make -j"$CORES" package/openwisp-config/compile || make -j1 V=s package/openwisp-config/compile || exit 1
5454

55+
# Build usign tool if not already built (required for package index generation)
56+
if [ ! -f staging_dir/host/bin/usign ]; then
57+
make -j"$CORES" tools/usign/compile || make -j1 V=s tools/usign/compile
58+
fi
59+
5560
# Generate package index with checksums (unsigned - no usign needed)
56-
cd "$BUILD_DIR"/openwrt
5761
make package/index SIGNED_PACKAGES= V=s
5862

5963
# Filter Packages file to include only openwisp packages and save as checksum file

0 commit comments

Comments
 (0)