Setup CodeQL #2
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
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up ROS | |
run: | | |
sudo apt update | |
sudo apt install -y ros-noetic-desktop-full python3-rosdep | |
sudo rosdep init | |
rosdep update | |
rosdep install --from-paths src --ignore-src -r -y | |
source /opt/ros/noetic/setup.bash | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build with catkin | |
run: | | |
source /opt/ros/noetic/setup.bash | |
mkdir -p build | |
cd build | |
catkin_make -DCMAKE_BUILD_TYPE=Release | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |