Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI workflow #4

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
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
4 changes: 2 additions & 2 deletions include/TclapUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace TCLAP
{
std::cout << "This is " << _progName << " version " << casema::getVersion() << " (" << casema::getBranchRefspec() << " branch)\n";
std::cout << "Built from commit " << casema::getCommitHash() << "\n";
std::cout << "CASEMA homepage: <http://www.cadet-web.de>\n";
std::cout << "Fork CASEMA on GitHub: <https://github.com/modsim/CASEMA>\n";
std::cout << "CADET homepage: <http://cadet.github.io/>\n";
std::cout << "Fork CADET-Semi-Analytic on GitHub: <https://github.com/cadet/CADET-Semi-Analytic>\n";
std::cout << "Report bugs to the issue tracker on GitHub or <[email protected]>" << std::endl;
}

Expand Down
1 change: 1 addition & 0 deletions include/io/FileIO.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <string>
#include <vector>
#include <cstdint>

#include "casemaCompilerInfo.hpp"

Expand Down
1 change: 1 addition & 0 deletions include/io/ParameterProvider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <string>
#include <vector>
#include <cstdint>

#include "casemaCompilerInfo.hpp"

Expand Down
Loading