Skip to content

Commit

Permalink
TEST: Set solver again to make sure it works
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 11, 2023
1 parent 9c474cf commit 1aae1a0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ jobs:

- name: Install build requirements
run: |
conda activate hexrd
# Change default solver to be libmamba, so that it runs much faster
conda install -n base -c conda-forge conda-libmamba-solver
conda config --set solver libmamba
conda activate hexrd
# FIXME: downgrade urllib3 until this issue is fixed:
# https://github.com/Anaconda-Platform/anaconda-client/issues/654
conda install --override-channels -c conda-forge anaconda-client conda-build conda 'urllib3<2.0.0'
Expand All @@ -62,7 +63,10 @@ jobs:
run: |
conda activate hexrd
mkdir output
conda build --override-channels -c conda-forge --output-folder output/ conda.recipe/
# Conda build is ignoring the .condarc for some reason, so we need to
# set this environment variable instead.
export CONDA_SOLVER=libmamba
CONDA_SOLVER=libmamba conda build --override-channels -c conda-forge --output-folder output/ conda.recipe/
# This is need to ensure ~/.profile or ~/.bashrc are used so the activate
# command works.
shell: bash -l {0}
Expand Down

0 comments on commit 1aae1a0

Please sign in to comment.