From 9441e39a223b084dadc6161def05723c35be0c1b Mon Sep 17 00:00:00 2001 From: Stephen Crane Date: Wed, 27 Sep 2023 14:17:24 -0700 Subject: [PATCH] Add nginx build to CI --- .github/workflows/ci.yml | 19 +++++++++++++++++++ external/nginx/reconfigure | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 636e0ff1e7..83aeb9f1a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,3 +45,22 @@ jobs: pushd build ninja -v check-ia2 popd + build-nginx: + runs-on: self-hosted + steps: + - name: Check out code + uses: actions/checkout@v3 + - name: Build nginx + run: | + LLVM_DIR=`llvm-config --cmakedir` + Clang_DIR=`realpath $LLVM_DIR/../clang` + pushd external/nginx + IA2_CMAKE_FLAGS=" + -DCMAKE_BUILD_TYPE=Release + -DClang_DIR=$Clang_DIR + -DLLVM_DIR=$LLVM_DIR" \ + ./reconfigure + pushd build/nginx + make + popd + popd diff --git a/external/nginx/reconfigure b/external/nginx/reconfigure index 76a2ca6555..737f9f11b2 100755 --- a/external/nginx/reconfigure +++ b/external/nginx/reconfigure @@ -28,7 +28,7 @@ fi if [ ! -f $SRC_REWRITER ] || [ ! -f $LIBIA2 ]; then mkdir -p $IA2_BUILD_DIR pushd $IA2_BUILD_DIR - cmake -GNinja $REPO_ROOT + cmake -GNinja $REPO_ROOT $IA2_CMAKE_FLAGS ninja ia2-rewriter libia2 pad-tls popd fi