mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] ci: check for improper usage of GL functions
This runs gl-check on the CI and fails the build if broken.
This commit is contained in:
parent
e0c1394c33
commit
35c57a862e
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -29,7 +29,8 @@ jobs:
|
|||||||
libgl-dev libgles-dev \
|
libgl-dev libgles-dev \
|
||||||
libx11-dev libxss-dev libxi-dev libxinerama-dev libxcursor-dev libxpresent-dev \
|
libx11-dev libxss-dev libxi-dev libxinerama-dev libxcursor-dev libxpresent-dev \
|
||||||
libwayland-dev wayland-protocols libxkbcommon-dev \
|
libwayland-dev wayland-protocols libxkbcommon-dev \
|
||||||
$([ '${{ matrix.wayland_shell }}' = libdecor ] && echo 'libdecor-dev libdbus-1-dev')
|
$([ '${{ matrix.wayland_shell }}' = libdecor ] && echo 'libdecor-dev libdbus-1-dev') \
|
||||||
|
$([ '${{ matrix.compiler.cc }}' = clang ] && echo 'clang-tools')
|
||||||
sudo pip3 install pyenchant
|
sudo pip3 install pyenchant
|
||||||
- name: Configure client
|
- name: Configure client
|
||||||
env:
|
env:
|
||||||
@ -41,6 +42,7 @@ jobs:
|
|||||||
cmake \
|
cmake \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
|
||||||
-DCMAKE_LINKER:FILEPATH=/usr/bin/ld \
|
-DCMAKE_LINKER:FILEPATH=/usr/bin/ld \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DENABLE_LIBDECOR=${{ matrix.wayland_shell == 'libdecor' }} \
|
-DENABLE_LIBDECOR=${{ matrix.wayland_shell == 'libdecor' }} \
|
||||||
..
|
..
|
||||||
- name: Build client
|
- name: Build client
|
||||||
@ -49,6 +51,9 @@ jobs:
|
|||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
- name: Checking help spelling
|
- name: Checking help spelling
|
||||||
run: ./client/build/looking-glass-client --help | ./doc/lgspell.py
|
run: ./client/build/looking-glass-client --help | ./doc/lgspell.py
|
||||||
|
- name: Check GL function calls
|
||||||
|
if: matrix.compiler.cc == 'clang'
|
||||||
|
run: WAYLAND_SHELL='${{ matrix.wayland_shell }}' ./gl-check
|
||||||
|
|
||||||
module:
|
module:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user