Adjust Codeql2 build (#2887)

Update codeql-analysis.yml

Use manual build avoid matchcompiler but also use Z3 and PCRE
This commit is contained in:
amai2012 2020-11-06 19:44:06 +01:00 committed by GitHub
parent b75d0665a7
commit 38a24703c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 15 deletions

View File

@ -19,6 +19,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install missing software on ubuntu
run: |
sudo apt-get update
sudo apt-get install libxml2-utils
sudo apt-get install z3 libz3-dev
cp externals/z3_version_old.h externals/z3_version.h
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
@ -31,21 +38,8 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main
setup-python-dependencies: false
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- run: |
make -j$(nproc) USE_Z3=yes HAVE_RULES=yes cppcheck
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1