ci: build and test on root self-hosted runners (#2237)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-07 17:02:19 -05:00
1 parent 8fa30b99f9
commit d29a1a2dc2
10 files changed
+59 -5

No files matched your search

+7
View File
@@ -52,6 +52,13 @@ cp "$HERE/talloc-config.h" "$WORK/talloc/config/config.h"
"$TOOLCHAIN/llvm-ar" rcs "$WORK/libtalloc.a" "$WORK/talloc.o"
mkdir -p "$WORK/bin"
ln -s "$TOOLCHAIN/llvm-readelf" "$WORK/bin/readelf"
# loader-info.awk needs strtonum, which mawk (the default awk on some runners) lacks.
if command -v gawk >/dev/null; then
ln -s "$(command -v gawk)" "$WORK/bin/awk"
elif ! awk 'BEGIN { exit !(strtonum("0x10") == 16) }' 2>/dev/null; then
echo "gawk, or an awk with strtonum, is required to build the proot loader" >&2
exit 1
fi
PATH="$WORK/bin:$PATH" make -C "$WORK/proot/src" -j"$(getconf _NPROCESSORS_ONLN)" \
CC="$CC" STRIP="$TOOLCHAIN/llvm-strip" OBJCOPY="$TOOLCHAIN/llvm-objcopy" OBJDUMP="$TOOLCHAIN/llvm-objdump" \
CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I. -I$WORK/talloc -DARG_MAX=131072 -Wno-error=implicit-function-declaration" \