Skip to content

explicitly set the state of the solvent (0 liquid, 1 vapor), default … #82

explicitly set the state of the solvent (0 liquid, 1 vapor), default …

explicitly set the state of the solvent (0 liquid, 1 vapor), default … #82

Workflow file for this run

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