LGTM Analysis #255
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
# SPDX-FileCopyrightText: 2021 Comcast Cable Communications Management, LLC | |
# SPDX-License-Identifier: Apache-2.0 | |
name: LGTM Analysis | |
on: | |
create: | |
pull_request: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '12 9 * * 3' | |
jobs: | |
codeql: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# Install the dependent packages | |
- name: Install packages | |
run: | | |
sudo apt update | |
sudo apt-get -y install valgrind libcunit1 libcunit1-doc libcunit1-dev libcurl4-openssl-dev openssl libexpat1-dev gcovr | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: cpp | |
queries: security-extended | |
# 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: | | |
mkdir build | |
cd build | |
../.github/scripts/rtrouted.sh | |
ps aux | |
export RBUS_ROOT=${HOME}/rbus | |
export RBUS_INSTALL_DIR=${RBUS_ROOT}/install && \ | |
export LD_LIBRARY_PATH=${RBUS_INSTALL_DIR}/usr/lib/rbus_temp_lib:${LD_LIBRARY_PATH} | |
export C_INCLUDE_PATH=${RBUS_INSTALL_DIR}/usr/include | |
mkdir _install | |
mkdir _install/lib | |
cp ${RBUS_INSTALL_DIR}/usr/lib/librbus* _install/lib | |
cmake .. -DBUILD_TESTING:BOOL=true -DBUILD_GIT:BOOL=true | |
make | |
killall -9 rtrouted | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 |