CodeQL #1013
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
# For most projects, this workflow file will not need changing; you simply need | |
# to commit it to your repository. | |
# | |
# You may wish to alter this file to override the set of languages analyzed, | |
# or to provide custom queries or build logic. | |
# | |
# ******** NOTE ******** | |
# We have attempted to detect the languages in your repository. Please check | |
# the `language` matrix defined below to confirm you have the correct set of | |
# supported CodeQL languages. | |
# | |
name: "CodeQL" | |
on: | |
push: | |
branches: | |
- master | |
- release-2022-Q1 | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: | |
- master | |
- release-2022-Q1 | |
schedule: | |
- cron: '20 18 * * 1' | |
jobs: | |
analyze-mpi: | |
name: Analyze mpi | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [cpp] | |
# Specify the container in which actions will run | |
container: | |
image: ehb1/us3comp:latest | |
options: --cpus 2 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build | |
run: | | |
cp admin/codeql/docker/local.pri.mpi local.pri | |
cd utils | |
qmake | |
make -j4 | |
cd .. | |
cd programs/us_mpi_analysis | |
qmake | |
make -j4 | |
cd ../.. | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
analyze-gui: | |
name: Analyze gui | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [cpp] | |
# Specify the container in which actions will run | |
container: | |
image: ehb1/us3comp:latest | |
options: --cpus 2 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build | |
run: | | |
cp admin/codeql/docker/local.pri.gui local.pri | |
git config --global --add safe.directory /__w/ultrascan3/ultrascan3 | |
(cd programs/us && sh revision.sh) | |
cd qwtplot3d | |
qmake | |
make -j4 | |
cd .. | |
cd utils | |
qmake | |
make -j4 | |
cd .. | |
cd gui | |
qmake | |
make -j4 | |
cd .. | |
for d in `find programs -type d -name "us*" | grep -v 'us_mpi_analysis'` | |
do | |
echo "*** compiling in $d ***" | |
( cd $d && qmake && make -j4 ) | |
done | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
analyze-somo: | |
name: Analyze somo | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
actions: read | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [cpp] | |
# Specify the container in which actions will run | |
container: | |
image: ehb1/us3comp:latest | |
options: --cpus 2 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build | |
run: | | |
bdir=`pwd` | |
echo $bdir | |
pwd | |
export ULTRASCAN=$bdir | |
export us3=$bdir | |
cd us_somo/develop | |
git config --global --add safe.directory /__w/ultrascan3/ultrascan3 | |
./revision.sh | |
./version.sh | |
cp $bdir/admin/codeql/docker/local.pri.somo local.pri | |
qmake libus_somo.pro | |
make -j4 | |
qmake us_somo.pro | |
make -j4 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |