From f80adba20355c51dc4dec7976dcba4abf7be6732 Mon Sep 17 00:00:00 2001 From: huangzhiqiang Date: Sat, 7 Jun 2025 15:03:37 +0800 Subject: [PATCH] add action: update build-ubuntu.yaml --- .gitea/workflows/build-ubuntu.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-ubuntu.yaml b/.gitea/workflows/build-ubuntu.yaml index 43ae843..b20cb25 100644 --- a/.gitea/workflows/build-ubuntu.yaml +++ b/.gitea/workflows/build-ubuntu.yaml @@ -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 }