Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ci miniforge v3 #280

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading