Ubuntu CodeQL #83
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: "Ubuntu CodeQL" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 0 * * 0' | |
permissions: | |
security-events: write | |
contents: read | |
jobs: | |
analyze: | |
name: Analyze on Ubuntu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y ffmpeg libavcodec-dev libcurl4-openssl-dev libsqlite3-dev pkg-config libyaml-cpp-dev | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'cpp' | |
- name: Build | |
run: | | |
mkdir build | |
cd external | |
git clone https://github.com/jbeder/yaml-cpp.git yaml-cpp | |
git clone https://github.com/CLIUtils/CLI11.git CLI11 | |
cd .. | |
cp sample-config.yaml build/config.yaml | |
cd build | |
cmake .. | |
make | |
touch recordings.db | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |