1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

Update codeql-analysis.yml

This commit is contained in:
Christian Giese
2021-02-06 20:35:10 +01:00
committed by GitHub
parent f072c567a9
commit 7c1a2437a6

View File

@ -20,6 +20,9 @@ on:
schedule: schedule:
- cron: '31 12 * * 6' - cron: '31 12 * * 6'
env:
BUILD_TYPE: Debug
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
@ -29,9 +32,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'cpp', 'python' ] language: [ 'cpp', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps: steps:
- name: Checkout repository - name: Checkout repository
@ -47,21 +47,30 @@ jobs:
# Prefix the list here with "+" to use these queries and those in the config file. # Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main # queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - name: Download RtBrick libdict
# If this step fails, then you should remove it and run the build manually (see below) shell: bash
- name: Autobuild run: wget https://github.com/rtbrick/libdict/releases/download/v1.0.1/libdict-debian.zip
uses: github/codeql-action/autobuild@v1
# Command-line programs to run using the OS shell. - name: Install RtBrick libdict
# 📚 https://git.io/JvXDl shell: bash
run: unzip libdict-debian.zip; sudo dpkg -i libdict_1.0.1_amd64.deb; sudo dpkg -i libdict-dev_1.0.1_amd64.deb
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines - name: Install Dependencies
# and modify them (or add more) to build your code if your project shell: bash
# uses a compiled language run: sudo apt install -y libcunit1-dev libncurses5-dev libssl-dev libjansson-dev libcmocka-dev libpcap-dev
#- run: | - name: Create Build Environment
# make bootstrap run: cmake -E make_directory ${{github.workspace}}/build
# make release
- name: Configure CMake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DGIT_REF=$GITHUB_REF -DGIT_SHA=$GITHUB_SHA -DBNGBLASTER_TESTS=ON -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{github.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1 uses: github/codeql-action/analyze@v1