Skip to content

Commit

Permalink
Set OS dependent Paths
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahlanzrath committed Dec 6, 2024
1 parent e7db63b commit 3b1cedd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ jobs:
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Set Cache Path
run: echo "CACHE_ENV_PATH=${{ runner.os == 'windows-latest' && runner.temp || '$HOME' }}/conda-cache/envs" >> $GITHUB_ENV

- name: Restore cache
uses: actions/cache/restore@v4
with:
enableCrossOsArchive: true
path: $HOME/miniconda3/envs
key: cross-os-python_${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }}
path: ${{env.CACHE_ENV_PATH}}
key: ${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }}
id: restore-cache

- name: No cache found - Create new environment with Miniforge
Expand All @@ -62,8 +65,8 @@ jobs:
- name: Save Cache if not hit
uses: actions/cache/save@v4
with:
path: $HOME/miniconda3/envs
key: cross-os-python_${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }}
path: ${{env.CACHE_ENV_PATH}}
key: ${{ matrix.os }}-python_${{ matrix.python-version }}-${{ steps.get-date.outputs.today }}-${{ hashFiles(env.CONDA_FILE) }}-${{ env.CACHE_NUMBER }}
if: steps.restore-cache.outputs.cache-hit != 'true'

- name: Install CADET-Process
Expand Down

0 comments on commit 3b1cedd

Please sign in to comment.