-
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
Showing
3 changed files
with
64 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,62 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
libhdf5-dev \ | ||
libgmp-dev \ | ||
libmpfr-dev \ | ||
libmpc-dev \ | ||
libeigen3-dev; | ||
- name: Download CADET-semi-analytic dependencies | ||
run: | | ||
# Download and build the required libraries if needed | ||
# Note: Add commands here if any libraries need to be downloaded and built | ||
- name: Create build directory | ||
run: mkdir build && cd build | ||
|
||
- name: Run CMake | ||
working-directory: build | ||
run: | | ||
# Set environment variables for CMake to locate libraries | ||
export GMP_ROOT=/usr/include | ||
export MPFR_ROOT=/usr/include | ||
export MPC_ROOT=/usr/include | ||
export HDF5_ROOT=/usr/include | ||
cmake -DCMAKE_INSTALL_PREFIX=install/ \ | ||
-DCMAKE_CXX_COMPILER=g++ \ | ||
-DCMAKE_C_COMPILER=gcc \ | ||
-DUSE_FADBAD=ON \ | ||
-DENABLE_TESTS=OFF \ | ||
.. | ||
- name: Build | ||
working-directory: build | ||
run: make -j$(nproc) | ||
|
||
- name: Install | ||
working-directory: build | ||
run: make install | ||
|
||
- name: Verify installation | ||
run: | | ||
./build/install/bin/chromatogram --version |
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
#include <string> | ||
#include <vector> | ||
#include <cstdint> | ||
|
||
#include "casemaCompilerInfo.hpp" | ||
|
||
|
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 |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
|
||
#include <string> | ||
#include <vector> | ||
#include <cstdint> | ||
|
||
#include "casemaCompilerInfo.hpp" | ||
|
||
|