2023-12-13 05:48:14 -05:00
|
|
|
name: Naming
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ncc:
|
2024-01-11 04:46:37 -05:00
|
|
|
name: 'C++'
|
2023-12-13 05:48:14 -05:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-01-24 21:16:29 -05:00
|
|
|
- uses: actions/checkout@v4
|
2023-12-13 05:48:14 -05:00
|
|
|
|
|
|
|
- name: Install LLVM and Clang
|
|
|
|
uses: KyleMayes/install-llvm-action@v1
|
|
|
|
with:
|
|
|
|
version: "16"
|
|
|
|
|
2024-10-26 08:57:47 -04:00
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version: '3.12'
|
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
- name: Install python libraries
|
|
|
|
run: |
|
|
|
|
pip install -r tools/requirements.txt
|
|
|
|
|
|
|
|
- name: Run ncc
|
|
|
|
run: |
|
2024-03-10 12:08:21 -04:00
|
|
|
action_headers=$(find LEGO1/lego/legoomni/include/actions \
|
|
|
|
-name '*.h' -print0 | xargs -0 echo)
|
|
|
|
|
2023-12-13 05:48:14 -05:00
|
|
|
python3 tools/ncc/ncc.py \
|
|
|
|
--clang-lib ${{ env.LLVM_PATH }}/lib/libclang.so \
|
2024-01-08 04:58:49 -05:00
|
|
|
--recurse \
|
2023-12-13 05:48:14 -05:00
|
|
|
--style tools/ncc/ncc.style \
|
|
|
|
--skip tools/ncc/skip.yml \
|
2024-01-02 15:45:53 -05:00
|
|
|
--definition WINAPI FAR BOOL CALLBACK HWND__=HWND \
|
2024-01-08 04:58:49 -05:00
|
|
|
--include \
|
|
|
|
util \
|
|
|
|
LEGO1 \
|
|
|
|
LEGO1/omni/include \
|
|
|
|
LEGO1/lego/legoomni/include \
|
|
|
|
LEGO1/lego/sources \
|
2024-02-29 12:00:57 -05:00
|
|
|
--exclude \
|
|
|
|
LEGO1/omni/include/flic.h \
|
|
|
|
LEGO1/omni/src/video/flic.cpp \
|
2024-03-10 12:08:21 -04:00
|
|
|
$action_headers \
|
2024-01-08 04:58:49 -05:00
|
|
|
--path LEGO1/omni LEGO1/lego/legoomni
|