Skip to content

Commit

Permalink
Fix Julia 2
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinp0 committed Apr 17, 2023
1 parent cb1ffcd commit 308b434
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/cont_int.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,35 @@ jobs:
- name: Setup Mambaforge Python 3.7
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: t3_env
python-version: 3.7
use-mamba: true
cache-env: true

- name: Get Date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Cache Conda env
uses: actions/cache@v2
with:
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('etc/environment-caching.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
id: cache

- name: Update environment
run: |
mamba env update -n t3_env -f environment.yml
conda list
run:
mamba env update -n anaconda-client-env -f
etc/example-environment-caching.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Install codecov
run: |
Expand Down Expand Up @@ -71,6 +88,13 @@ jobs:
cd RMG-Py
conda activate rmg_env
make
BASE=$(conda info --base)
source "$BASE/etc/profile.d/conda.sh"
echo "export OLD_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}" >> "$BASE/envs/rmg_env/etc/conda/activate.d/env_vars.sh"
echo "export LD_LIBRARY_PATH=$BASE/envs/rmg_env/lib:$LD_LIBRARY_PATH" >> "$BASE/envs/rmg_env/etc/conda/activate.d/env_vars.sh"
echo "export LD_LIBRARY_PATH=${OLD_LD_LIBRARY_PATH}" >> "$BASE/envs/rmg_env/etc/conda/deactivate.d/env_vars.sh"
echo "unset OLD_LD_LIBRARY_PATH" >> "$BASE/envs/rmg_env/etc/conda/deactivate.d/env_vars.sh"
- name: Cache Cython modules
uses: actions/cache@v2
Expand Down

0 comments on commit 308b434

Please sign in to comment.