add action: update build-ubuntu.yaml
Some checks failed
Build NGINX on Ubuntu / ubuntu-22.04, amd64 (push) Has been cancelled

This commit is contained in:
huangzhiqiang 2025-06-07 15:03:37 +08:00
parent 867cdfc1a6
commit f80adba203

View File

@ -93,14 +93,31 @@ jobs:
- name: 配置和编译 NGINX
run: |
echo "当前工作目录: $(pwd)"
echo "目录内容:"
ls -la
# 检查是否存在 auto/configure 文件
if [ ! -f "auto/configure" ]; then
echo "错误:找不到 auto/configure 文件"
echo "可能的 configure 文件位置:"
find . -name "configure" -type f 2>/dev/null || true
find . -name "auto" -type d 2>/dev/null || true
exit 1
fi
echo "开始配置 NGINX..."
auto/configure \
./auto/configure \
$CONFIGURE_OPTS \
--with-cc-opt="$CC_OPT" \
--with-ld-opt="$LD_OPT" \
|| {
echo "配置失败,查看错误日志:"
cat objs/autoconf.err
if [ -f "objs/autoconf.err" ]; then
cat objs/autoconf.err
else
echo "错误日志文件 objs/autoconf.err 不存在"
fi
exit 1
}