| 1 |
name: "CodeQL" |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [next] |
| 6 |
pull_request: |
| 7 |
branches: [next] |
| 8 |
|
| 9 |
jobs: |
| 10 |
analyze: |
| 11 |
name: Analyze |
| 12 |
runs-on: ubuntu-latest |
| 13 |
|
| 14 |
strategy: |
| 15 |
fail-fast: false |
| 16 |
matrix: |
| 17 |
language: ['cpp', 'python'] |
| 18 |
|
| 19 |
steps: |
| 20 |
- name: Checkout repository |
| 21 |
uses: actions/checkout@v4 |
| 22 |
- name: Install libconfig 1.8 |
| 23 |
run: | |
| 24 |
ver="1.8.1" |
| 25 |
wget https://github.com/hyperrealm/libconfig/archive/refs/tags/v$ver.tar.gz |
| 26 |
tar -xvf v$ver.tar.gz |
| 27 |
cd libconfig-$ver |
| 28 |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu . |
| 29 |
sudo make install |
| 30 |
|
| 31 |
|
| 32 |
- name: Initialize CodeQL |
| 33 |
uses: github/codeql-action/init@v3 |
| 34 |
with: |
| 35 |
languages: ${{ matrix.language }} |
| 36 |
|
| 37 |
|
| 38 |
- run: sudo apt update && sudo apt install libdbus-1-dev libegl-dev libev-dev libgl-dev libpcre2-dev libpixman-1-dev libx11-xcb-dev libxcb1-dev libxcb-composite0-dev libxcb-damage0-dev libxcb-glx0-dev libxcb-image0-dev libxcb-present-dev libxcb-randr0-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-shape0-dev libxcb-util-dev libxcb-xfixes0-dev meson ninja-build uthash-dev libepoxy-dev |
| 39 |
if: ${{ matrix.language == 'cpp' }} |
| 40 |
|
| 41 |
|
| 42 |
- name: Autobuild |
| 43 |
uses: github/codeql-action/autobuild@v3 |
| 44 |
|
| 45 |
- name: Perform CodeQL Analysis |
| 46 |
uses: github/codeql-action/analyze@v3 |