refactor(eventsub): generate entire files (#5897)

This commit is contained in:
nerix
2025-02-05 16:53:25 +01:00
committed by GitHub
parent 5e3412c3bb
commit 449aefc6bc
54 changed files with 972 additions and 922 deletions
+19
View File
@@ -71,6 +71,16 @@ jobs:
run: |
git config --global --add safe.directory '*'
- name: Install Python and libclang (24.04)
if: matrix.os == 'ubuntu-24.04'
run: |
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt -y --no-install-recommends install \
python3 python3-venv clang-18 clang-format-18 libclang-18-dev
echo "LIBCLANG_LIBRARY_FILE=/usr/lib/x86_64-linux-gnu/libclang-18.so" >> "$GITHUB_ENV"
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-18 42
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-18 42
- name: Build
run: |
mkdir build
@@ -85,9 +95,16 @@ jobs:
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
-DCMAKE_PREFIX_PATH="$Qt6_DIR/lib/cmake" \
-DCHATTERINO_STATIC_QT_BUILD=On \
-DFORCE_JSON_GENERATION=${{matrix.os == 'ubuntu-24.04' && 'On' || 'Off'}} \
..
make -j"$(nproc)"
- name: Check generated sources
if: matrix.os == 'ubuntu-24.04'
run: |
git add -N lib/twitch-eventsub-ws/include lib/twitch-eventsub-ws/src
git --no-pager diff --exit-code lib/twitch-eventsub-ws/include lib/twitch-eventsub-ws/src
- name: Package - AppImage (Ubuntu)
if: matrix.build-appimage
run: |
@@ -239,6 +256,7 @@ jobs:
-DCHATTERINO_LTO="$Env:C2_ENABLE_LTO" `
-DCHATTERINO_PLUGINS="$Env:C2_PLUGINS" `
-DBUILD_WITH_QT6="$Env:C2_BUILD_WITH_QT6" `
-DFORCE_JSON_GENERATION=On `
..
set cl=/MP
nmake /S /NOLOGO
@@ -308,6 +326,7 @@ jobs:
-DCHATTERINO_LTO="$C2_ENABLE_LTO" \
-DCHATTERINO_PLUGINS="$C2_PLUGINS" \
-DBUILD_WITH_QT6="$C2_BUILD_WITH_QT6" \
-DFORCE_JSON_GENERATION=Off \
..
make -j"$(sysctl -n hw.logicalcpu)"
shell: bash