Skip to content

LGARTO

LGARTO #111

# Test changes that have been pushed to the master branch
name: Testing and Validation
# Controls when the action will run.
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
#env:
# Obtained from https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
# TODO: add something later that can check the runners for hyperthreading
#LINUX_NUM_PROC_CORES: 2
#MACOS_NUM_PROC_CORES: 3
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Run general unit tests in linux environment
test_unit:
# The type of runner that the job will run on
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the commit
uses: actions/checkout@v4
- name: Build and Run Unittest
run: |
mkdir build && cd build
cmake ../ -DUNITTEST=ON
make && cd ../tests
./run_unittest.sh && cd ..
- name: Build and Run Synthetic Tests
run: |
if [ -d "./build/" ]
then
rm -rf build
fi
mkdir build && cd build
cmake ../ -DSTANDALONE=ON
make && cd ../tests
./run_synthetic.sh 0
./run_synthetic.sh 1
./run_synthetic.sh 2
- name: Build and Run Standalone
run: |
if [ -d "./build/" ]
then
rm -rf build
fi
mkdir build && cd build
cmake ../ -DSTANDALONE=ON
make && cd ..
./build/lasam_standalone configs/config_lasam_Phillipsburg.txt
./build/lasam_standalone configs/config_lasam_Bushland.txt