2023-05-27 07:59:41 +00:00
|
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
pull_request:
|
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
schedule:
|
|
|
|
|
- cron: '36 19 * * 5'
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
analyze:
|
|
|
|
|
name: Analyze
|
|
|
|
|
runs-on: 'ubuntu-latest'
|
2023-05-27 08:08:28 +00:00
|
|
|
|
env:
|
|
|
|
|
BUILD_TYPE: Release
|
2023-05-27 07:59:41 +00:00
|
|
|
|
permissions:
|
|
|
|
|
actions: read
|
|
|
|
|
contents: read
|
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
language: [ 'cpp', 'javascript', 'python' ]
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: Checkout repository
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
|
|
- name: Initialize CodeQL
|
|
|
|
|
uses: github/codeql-action/init@v2
|
|
|
|
|
with:
|
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
|
|
|
2023-05-27 08:05:33 +00:00
|
|
|
|
- name: Install APT dependencies
|
2023-05-27 08:18:27 +00:00
|
|
|
|
run: sudo apt install libfuse3-dev libwebsockets-dev clang-tidy
|
2023-05-27 08:05:33 +00:00
|
|
|
|
|
|
|
|
|
- name: Configure CMake
|
2023-05-27 08:18:27 +00:00
|
|
|
|
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DWITHOUT_TEST=ON
|
2023-05-27 08:05:33 +00:00
|
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
|
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
2023-05-27 07:59:41 +00:00
|
|
|
|
|
|
|
|
|
# ℹ️ Command-line programs to run using the OS shell.
|
|
|
|
|
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
|
|
|
|
|
|
|
|
|
|
# If the Autobuild fails above, remove it and uncomment the following three lines.
|
|
|
|
|
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
|
|
|
|
|
|
|
|
|
|
# - run: |
|
|
|
|
|
# echo "Run, Build Application using script"
|
|
|
|
|
# ./location_of_script_within_repo/buildscript.sh
|
|
|
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
|
|
|
|
uses: github/codeql-action/analyze@v2
|
|
|
|
|
with:
|
|
|
|
|
category: "/language:${{matrix.language}}"
|