Skip to content

Ehb54 issue 296 - us_branch.php utility program #1101

Ehb54 issue 296 - us_branch.php utility program

Ehb54 issue 296 - us_branch.php utility program #1101

Workflow file for this run

# 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
- aaron-dev-test
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- aaron-dev-test
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@v4
- name: Install libarchive
run: |
apt-get install -y libarchive-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Build
run: |
cp admin/codeql/docker/local.pri.mpi local.pri
git config --global --add safe.directory /__w/ultrascan3/ultrascan3
cd utils
qmake
make -j4
cd ..
cd programs/us_mpi_analysis
qmake
make -j4
cd ../..
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
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@v4
- name: Install libarchive
run: |
apt-get install -y libarchive-dev
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
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@v3
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@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
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@v3
unit-testing:
name: Unit Testing
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@v4
- name: Configure and build
run: |
apt-get install -y cmake
bdir=`pwd`
echo $bdir
pwd
export ULTRASCAN=$bdir
export us3=$bdir
git config --global --add safe.directory /__w/ultrascan3/ultrascan3
mkdir -p $bdir/build
cd build
cmake ..
make -j4
- name: Run tests
run: |
cd build
ctest --output-on-failure -V