Skip to content

Commit

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

- name: Set Cache Path
- name: Set Up Conda Path (Windows-Compatible)
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "CACHE_ENV_PATH=C:\\Users\\runneradmin\\miniconda3\\envs" >> $GITHUB_ENV
echo "Adding Conda to PATH for Windows"
echo "C:\\Users\\runneradmin\\miniconda3\\condabin" >> $GITHUB_PATH
else
echo "CACHE_ENV_PATH=$HOME/miniconda3/envs" >> $GITHUB_ENV
echo "Adding Conda to PATH for Linux/Mac"
echo "$HOME/miniconda3/bin" >> $GITHUB_PATH
fi
- name: Restore cache
Expand Down

0 comments on commit ed2b89d

Please sign in to comment.