ci: Alternative CodeQL C++ build

This commit is contained in:
Mateusz Pusz
2020-11-05 16:10:21 +01:00
parent 1ecda6d2f9
commit 85d174ccbe

View File

@@ -54,15 +54,6 @@ jobs:
# 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
# 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
if: matrix.language != 'cpp'
uses: github/codeql-action/autobuild@v1
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
- name: Cache Conan data
if: matrix.language == 'cpp'
uses: actions/cache@v2
@@ -80,16 +71,23 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Conan build
- name: Conan install
if: matrix.language == 'cpp'
run: |
pip install -U conan
conan config init
conan remote add upload ${{ secrets.CONAN_UPLOAD }}
conan remote add linear-algebra https://api.bintray.com/conan/twonington/public-conan
mkdir build && cd build
mkdir _lgtm_build_dir && cd _lgtm_build_dir
conan install .. -s compiler.cppstd=20 -s compiler.libcxx=libstdc++11 -o mp-units:generate_docs=False -e mp-units:CONAN_RUN_TESTS=True -b outdated -u
conan build ..
# 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
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1