Skip to content

Commit

Permalink
Fix ci miniforge v3 (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored Oct 2, 2024
1 parent 47caf25 commit 32f51e4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/run_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,16 @@ jobs:
if: runner.os != 'Windows'
run: cd workflow-inference-compiler/install/ && echo " - pypy" >> system_deps.yml

# - name: Remove old mamba environment
# if: always()
# run: rm -rf "/home/$(whoami)/miniconda3/envs/wic_github_actions/"
# # For self-hosted runners, make sure we install into a new mamba environment
# # NOTE: Every time the github self-hosted runner executes, it sets "set -e" in ~/.bash_profile
# # So if we rm -rf the old mamba environment without also removing the mamba init code in ~/.bash_profile
# # (or removing the file altogether), then unless we immediately re-create the environment,
# # (i.e. if we try to run any other commands between removing and re-creating the environment)
# # we will get "EnvironmentNameNotFound: Could not find conda environment: wic_github_actions"
# # and (again, due to "set -e") the workflow step will fail.
- name: Remove old mamba environment
if: always()
run: rm -rf "/home/$(whoami)/miniconda3/envs/wic_github_actions/"
# For self-hosted runners, make sure we install into a new mamba environment
# NOTE: Every time the github self-hosted runner executes, it sets "set -e" in ~/.bash_profile
# So if we rm -rf the old mamba environment without also removing the mamba init code in ~/.bash_profile
# (or removing the file altogether), then unless we immediately re-create the environment,
# (i.e. if we try to run any other commands between removing and re-creating the environment)
# we will get "EnvironmentNameNotFound: Could not find conda environment: wic_github_actions"
# and (again, due to "set -e") the workflow step will fail.

- name: Setup miniforge (linux, macos)
if: always()
Expand Down

0 comments on commit 32f51e4

Please sign in to comment.