modified cache #42
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: Push CI | |
on: | |
push: | |
branches: | |
- 'feature/*' | |
jobs: | |
build: | |
name: Build & Run Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up CMake | |
uses: jwlawson/actions-setup-cmake@v2 | |
with: | |
cmake-version: '3.26.3' | |
- name: Install dependencies | |
run: sudo apt-get install -y libgtest-dev libgmock-dev libboost-all-dev libeigen3-dev | |
- name: Configure CMake | |
run: | | |
cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_STANDARD=20 .. | |
- name: Build Main Executable and Test Executable | |
run: | # probably need to build specific target --target Option_pricer Unit_tests to exclude examples | |
cmake --build build --target Unit_tests | |
- name: Run Unit Tests | |
run: | | |
cd build | |
ctest -R UnitTests --output-on-failure |