Skip to content

Commit 2974759

Browse files
committed
ci: Check enums
Ensure we do not miss new enums/values.
1 parent 3371d41 commit 2974759

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/linux.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ jobs:
3030
python-version: '3.12'
3131
- name: Install dependencies
3232
run: |
33-
# Jinja2 is needed for merge-modes tests
34-
python -m pip install --upgrade meson PyYAML ruff Jinja2
3533
sudo apt update
3634
sudo apt install -y \
3735
locales tzdata \
3836
doxygen libxcb-xkb-dev valgrind ninja-build \
3937
libwayland-dev wayland-protocols bison graphviz libicu-dev \
38+
libclang-dev \
4039
${{ matrix.sanitizers == 'sanitizers' && 'libasan8 libubsan1' || '' }}
40+
# Jinja2 is needed for merge-modes tests
41+
python3 -m pip install --upgrade meson PyYAML ruff Jinja2 clang==14
4142
# Generate locale for tests
4243
sudo locale-gen fr_FR.UTF-8
4344
- name: Install xkeyboard-config
@@ -77,8 +78,10 @@ jobs:
7778
run: |
7879
meson compile -C build
7980
- name: Test
80-
# Use a specific non-US locale
81-
run:
81+
run: |
82+
# Test enumerations
83+
scripts/export-enums.py --libclang-path=/usr/lib/llvm-14/lib/ check
84+
# Use a specific non-US locale
8285
LC_ALL=fr_FR.UTF-8 meson test -C build --print-errorlogs
8386
- name: Test with valgrind
8487
if: matrix.sanitizers != 'sanitizers'

0 commit comments

Comments
 (0)