2021-09-24 00:47:02 -05:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
schedule:
|
|
|
|
- cron: '15 15 * * 0'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
2021-09-24 00:56:09 -05:00
|
|
|
name: '💭 Analyze'
|
2021-09-30 19:50:53 -05:00
|
|
|
runs-on: ubuntu-20.04
|
2021-09-24 00:47:02 -05:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'cpp' ]
|
|
|
|
|
|
|
|
steps:
|
2021-09-24 00:56:09 -05:00
|
|
|
- name: '🧰 Checkout'
|
2021-09-24 00:47:02 -05:00
|
|
|
uses: actions/checkout@v2
|
2021-09-24 00:56:09 -05:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2021-09-24 00:47:02 -05:00
|
|
|
- name: Initialize CodeQL
|
|
|
|
uses: github/codeql-action/init@v1
|
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
2021-09-24 00:56:09 -05:00
|
|
|
- name: '⚙️ Cache Qt'
|
|
|
|
id: cache-qt
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ../Qt
|
2021-09-30 19:49:01 -05:00
|
|
|
key: ${{runner.os}}-qt-6.2.0
|
2021-09-24 00:47:02 -05:00
|
|
|
|
2021-09-24 00:56:09 -05:00
|
|
|
- name: '⚙️ Install Qt'
|
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
2021-09-30 19:49:01 -05:00
|
|
|
version: 6.2.0
|
|
|
|
modules: qtserialport
|
|
|
|
aqtversion: '==2.0.0'
|
2021-09-24 00:56:09 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
- name: '🚧 Compile application'
|
|
|
|
run: |
|
|
|
|
qmake ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
|
|
|
make -j8
|
|
|
|
|
|
|
|
- name: '💭 Perform CodeQL Analysis'
|
2021-09-24 00:47:02 -05:00
|
|
|
uses: github/codeql-action/analyze@v1
|