-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benedikt Moritz Maurer
committed
Oct 2, 2024
1 parent
2f9e066
commit aaee1ad
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Flash CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up C++ environment | ||
uses: actions/setup-cpp@v2 | ||
with: | ||
compiler: gcc | ||
|
||
- name: Install dependencies | ||
run: sudo apt-get update && sudo apt-get install -y | ||
cmake libyaml-cpp-dev catch2 libeigen3-dev doxygen libhdf5-dev | ||
|
||
- name: Create build directory | ||
run: mkdir build | ||
|
||
- name: Configure CMake | ||
run: cmake -S . -B build | ||
|
||
- name: Build the project | ||
run: cmake --build build | ||
|
||
- name: Run tests | ||
run: cd build && ctest --output-on-failure |