Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into fixes-paper
Browse files Browse the repository at this point in the history
  • Loading branch information
gdmiron committed Dec 22, 2022
2 parents 52b1dbd + 9a701c9 commit 5007c82
Show file tree
Hide file tree
Showing 64 changed files with 717 additions and 440 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: linux

on:
push:
branches:
- master

pull_request:

schedule:
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays

jobs:
build:
name: ${{ matrix.config }} build on ${{ matrix.os }} (Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
max-parallel: 4
matrix:
os: ["ubuntu-latest"]
python-version: [3.9]
config: ["Release"]

steps:
- uses: actions/checkout@v3

- name: Timestamp # Idea from https://tinyurl.com/47wz7vpv
id: timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=now::${current_date}")
- name: Configuring Cache
id: cache
uses: actions/cache@v3
with:
path: |
/home/runner/.cache
/home/runner/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-ccache-${ { steps.timestamp.outputs.now } }
restore-keys: |
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-ccache-
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true

- name: Configuring Conda Environment
shell: bash -l {0}
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv=2
conda devenv
- name: Building, Testing & Installing ThermoFun
shell: bash -l {0}
run: |
source activate thermofun
ccache -s
ccache -z
mkdir .build && cd .build
cmake -GNinja .. -DCMAKE_BUILD_TYPE=${{ matrix.config }}
ninja
ninja install
python -c "import thermofun"
ccache -s
75 changes: 75 additions & 0 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: osx

on:
push:
branches:
- master

pull_request:

schedule:
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays

jobs:
build:
name: ${{ matrix.config }} build on ${{ matrix.os }} (Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
max-parallel: 4
matrix:
os: ["macos-latest"]
python-version: [3.9]
config: ["Release"]

steps:
- uses: actions/checkout@v3

- name: Timestamp # Idea from https://tinyurl.com/47wz7vpv
id: timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=now::${current_date}")
- name: Configuring Cache
id: cache
uses: actions/cache@v3
with:
path: |
/Users/runner/Library/Caches/ccache
/Users/runner/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-ccache-${ { steps.timestamp.outputs.now } }
restore-keys: |
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-ccache-
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true

- name: Configuring Conda Environment
shell: bash -l {0}
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv=2
conda devenv
- name: Building, Testing & Installing ThermoFun
shell: bash -l {0}
run: |
source activate thermofun
ccache -s
ccache -z
mkdir .build && cd .build
cmake -GNinja .. -DCMAKE_BUILD_TYPE=${{ matrix.config }}
ninja
ninja install
python -c "import thermofun"
ccache -s
78 changes: 78 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: windows

on:
push:
branches:
- master

pull_request:

schedule:
- cron: "0 5 * * 1" # runs at 05:00 UTC on Mondays

jobs:
build:
name: ${{ matrix.config }} build on ${{ matrix.os }} (Python ${{ matrix.python-version }})
runs-on: windows-2019

strategy:
fail-fast: true
max-parallel: 4
matrix:
os: ["windows-2019"]
python-version: [3.9]
config: ["Release"]

steps:
- uses: actions/checkout@v3

- name: Timestamp # Idea from https://tinyurl.com/47wz7vpv
id: timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=now::${current_date}")
- name: Configuring Cache
id: cache
uses: actions/cache@v3
with:
path: |
C:\Users\runneradmin\clcache
C:\Users\runneradmin\conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-clcache-${ { steps.timestamp.outputs.now } }
restore-keys: |
${{ runner.os }}-${{ matrix.config }}-${{ runner.python-version }}-${{ github.ref }}-clcache-
- uses: conda-incubator/setup-miniconda@v2
with:
auto-activate-base: false
allow-softlinks: true
activate-environment: ''
channels: conda-forge
channel-priority: true

- name: Configuring Conda Environment
env:
PYTHON_VERSION: ${{ matrix.python-version }}
run: |
conda config --set always_yes yes --set changeps1 no
conda config --add channels conda-forge
conda install conda-devenv=2
conda devenv
- name: Building, Testing & Installing ThermoFun
shell: cmd
env:
PYTHONPATH: C:\Miniconda\envs\thermofun\Library\Lib\site-packages
run: |
call conda activate thermofun || goto :eof
clcache -s || goto :eof
clcache -z || goto :eof
mkdir .build && cd .build || goto :eof
cmake -GNinja .. -DCMAKE_BUILD_TYPE=${{ matrix.config }} || goto :eof
ninja || goto :eof
ninja install || goto :eof
python -c "import thermofun" || goto :eof
clcache -s || goto :eof
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ python/tests/results.csv
python/tests/results_dbc.csv
python/pyThermoFun/CMakeLists_old.txt

*.log




10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Require a certain version of cmake
cmake_minimum_required(VERSION 3.9)

# Set the name of the project
project(ThermoFun VERSION 0.3.9 LANGUAGES CXX)

# Set the cmake module path of the project
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")

# Use ccache to speed up repeated compilations
include(CCache)

# Set the name of the project
project(ThermoFun VERSION 0.4.1 LANGUAGES CXX)

# Define variables with the GNU standard installation directories
include(GNUInstallDirs)

Expand Down Expand Up @@ -53,8 +53,8 @@ if(NOT CMAKE_BUILD_TYPE)
endif()

# Set the C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_STANDARD 17)
#set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Set the list of compiler flags for MSVC compiler
if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
Expand Down
Loading

0 comments on commit 5007c82

Please sign in to comment.