From 86473753f34c7c8e32258c4adbf46a648c93210e Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Wed, 11 Oct 2023 17:50:55 -0500 Subject: [PATCH] Test specific instructions It worked in the last commit, let's see if we can simplify it. Signed-off-by: Patrick Avery --- .github/workflows/package.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 2ce017cea..e05fc4cc9 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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}