Skip to content

Commit

Permalink
Test specific instructions
Browse files Browse the repository at this point in the history
It worked in the last commit, let's see if we can simplify it.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Oct 12, 2023
1 parent e576070 commit 8647375
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,17 @@ jobs:
if: ${{ matrix.config.name != 'Linux' }}
run: |
conda activate hexrd
conda install -n base -c conda-forge conda-libmamba-solver
# For some reason, we need to set this in the environment as well.
# It seems conda build sometimes needs the solver in the environment
# and sometimes in the base environment. I don't know why.
conda install -c conda-forge conda-libmamba-solver
conda config --set solver libmamba
conda config --env --set solver libmamba
mkdir output
# Conda build is ignoring the .condarc for some reason, so we need to
# set this environment variable instead.
# Setting this variable via `env` did not seem to work for some reason.
export CONDA_SOLVER=libmamba
CONDA_SOLVER=libmamba conda build --override-channels -c conda-forge --output-folder output/ conda.recipe/
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 8647375

Please sign in to comment.