Skip to content

Commit

Permalink
Add nginx build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rinon committed Sep 27, 2023
1 parent 2e594fd commit 9ae671d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion external/nginx/reconfigure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,6 +56,7 @@ fi

if [ ! -f $NGINX_ROOT/compile_commands.json ]; then
bear -- make -j8 IA2_LDFLAGS= IA2_MODULE_LDFLAGS= IA2_CALLGATES= IA2_EXTRA_CFLAGS= IA2_ENABLE=0 build
cp compile_commands.json $BUILD_DIR/
fi

if [ ! -f $BUILD_DIR/wrapper.c ] ||
Expand Down

0 comments on commit 9ae671d

Please sign in to comment.