CodeQL #675
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CodeQL" | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '15 15 * * 0' | |
env: | |
VERSION: "2.0.0" | |
QMAKE_PROJECT: "Serial-Studio.pro" | |
QT_VERSION: 6.5.3 | |
QMAKE: qmake6 | |
CORES: 16 | |
QT_MODULES: qtserialport qtconnectivity qt5compat | |
jobs: | |
analyze: | |
name: '💭 Analyze (Ubuntu 20.04)' | |
runs-on: ubuntu-20.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: '🧰 Checkout' | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: '⚙️ Initialize CodeQL' | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: '⚙️ Install Qt' | |
uses: jurplel/install-qt-action@v2 | |
with: | |
version: ${{env.QT_VERSION}} | |
modules: ${{env.QT_MODULES}} | |
aqtversion: '==2.0.0' | |
cached: ${{steps.cache-qt.outputs.cache-hit}} | |
- name: '⚙️ Install dependencies' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev libxcb-image0-dev libxcb-util0-dev libxcb-cursor-dev | |
- name: '🚧 Compile application' | |
run: | | |
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr | |
make -j${{env.CORES}} | |
- name: '💭 Perform CodeQL Analysis' | |
uses: github/codeql-action/analyze@v2 |