Serial-Studio/.github/workflows/codeql-analysis.yml
2021-09-24 00:56:09 -05:00

61 lines
1.4 KiB
YAML

name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '15 15 * * 0'
jobs:
analyze:
name: '💭 Analyze'
runs-on: ubuntu-latest
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@v1
with:
languages: ${{ matrix.language }}
- name: '⚙️ Cache Qt'
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: ${{runner.os}}-QtCache
- name: '⚙️ Install Qt'
uses: jurplel/install-qt-action@v2
with:
modules: qtcharts
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'
uses: github/codeql-action/analyze@v1