Skip to content

ci: Add a clang-ast workflow #1

ci: Add a clang-ast workflow

ci: Add a clang-ast workflow #1

Workflow file for this run

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:

Check failure on line 22 in .github/workflows/clang-ast.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/clang-ast.yaml

Invalid workflow file

You have an error in your yaml syntax on line 22
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 clang-dev clang make \
openssl-dev libpcre2-dev
- uses: actions/checkout@v4
- name: Checkout and build clang-ast
run: |
git clone https://github.com/ac000/clang-ast -b unit-stdc++17
cd clang-ast
make
- name: Configure Unit
run: ./configure --cc=clang --tests --openssl --debug
- name: Build Unit
run: make -j4 \
EXTRA_CFLAGS='-Xclang -load -Xclang clang-ast/ngx-ast.so -Xclang -plugin -Xclang ngx-ast' \
NXT_SHARED_LOCAL_LINK=: build/lib/libnxt.so V=1