This repository was archived by the owner on Oct 8, 2025. It is now read-only.
  
  
  
  
ci: Add a clang-ast workflow #15
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: "Clang AST" | |
| on: | |
| push: | |
| branches: master | |
| paths: | |
| - configure | |
| - 'auto/**' | |
| - 'src/**' | |
| - 'test/**' | |
| - '.github/workflows/clang-ast.yaml' | |
| pull_request: | |
| branches: master | |
| paths: | |
| - configure | |
| - 'auto/**' | |
| - 'src/**' | |
| - 'test/**' | |
| - '.github/workflows/clang-ast.yaml' | |
| jobs: | |
| clang-ast: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: debian:testing | |
| steps: | |
| - name: Install tools/deps | |
| run: | | |
| apt-get -y update | |
| apt-get -y install git llvm-dev libclang-dev clang make \ | |
| libssl-dev libpcre2-dev | |
| - uses: actions/checkout@v4 | |
| - name: Checkout and build clang-ast | |
| run: | | |
| git clone https://github.com/nginx/clang-ast.git -b unit | |
| cd clang-ast | |
| make | |
| - name: Configure Unit | |
| run: ./configure --cc=clang --cc-opt="-Xclang -load -Xclang clang-ast/ngx-ast.so -Xclang -add-plugin -Xclang ngx-ast" --openssl --debug --tests | |
| - name: Build Unit | |
| run: | | |
| make -j4 NXT_SHARED_LOCAL_LINK=: build/lib/libnxt.so | |
| - name: Build C tests | |
| run: make -j4 tests |