Skip to content

Commit

Permalink
Update gh actions mamba references
Browse files Browse the repository at this point in the history
  • Loading branch information
englehardt committed Jan 16, 2025
1 parent 06ae79b commit 52678a7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ runs:
using: "composite"
steps:
# All of these steps are just setup
- name: Setting MAMBA_PATH
- name: Setting CONDA_PATH
shell: bash
run: echo "MAMBA_PATH=$HOME/mamba" >> $GITHUB_ENV
- name: Setting OPENWPM_MAMBA_PATH
run: echo "CONDA_PATH=$HOME/conda" >> $GITHUB_ENV
- name: Setting OPENWPM_CONDA_PATH
shell: bash
run: echo "OPENWPM_MAMBA_PATH=$MAMBA_PATH/envs/openwpm" >> $GITHUB_ENV
run: echo "OPENWPM_CONDA_PATH=$CONDA_PATH/envs/openwpm" >> $GITHUB_ENV
# If the environment.yaml hasn't changed we just reuse the entire conda install
- id: cache
uses: actions/cache@v4
env:
cache-name: conda-cache
with:
path: ${{ env.MAMBA_PATH }}
path: ${{ env.CONDA_PATH }}
key: ${{ env.cache-name }}-${{ hashFiles('environment.yaml') }}

- name: Install conda
shell: bash
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
run: $GITHUB_WORKSPACE/scripts/install-mamba.sh
run: $GITHUB_WORKSPACE/scripts/install-conda.sh

- shell: bash
run: echo "$MAMBA_PATH/bin" >> $GITHUB_PATH
run: echo "$CONDA_PATH/bin" >> $GITHUB_PATH

- name: Install.sh (cache miss)
shell: bash
Expand All @@ -36,5 +36,5 @@ runs:
if: ${{ steps.cache.outputs.cache-hit == 'true' }}
run: $GITHUB_WORKSPACE/install.sh --skip-create
- shell: bash
run: echo "$OPENWPM_MAMBA_PATH/bin" >> $GITHUB_PATH
# Now we have a working OpenWPM environment
run: echo "$OPENWPM_CONDA_PATH/bin" >> $GITHUB_PATH
# Now we have a working OpenWPM environment

0 comments on commit 52678a7

Please sign in to comment.