Skip to content

Commit

Permalink
set CMAKE_PREFIX_PATH in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Dec 1, 2023
1 parent 3bd949b commit 947177b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
- name: pip
run: |
CMAKE_PREFIX_PATH=${CONDA_PREFIX}
pip install .[test]
- name: Check imports
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ RUN apt-get update && apt-get install -y \

# Install miniconda and activate base on startup
ENV PATH /opt/conda/bin:/opt/conda/condabin:${PATH}
ENV CMAKE_PREFIX_PATH=/opt/conda

RUN curl -o miniconda_installer.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash miniconda_installer.sh -b -p /opt/conda \
&& rm miniconda_installer.sh \
&& conda install -y -c conda-forge mamba \
&& conda init bash \
&& conda config --set auto_activate_base true \
&& conda clean -ya
&& mamba init bash \
&& mamba config --set auto_activate_base true \
&& mamba clean -ya

# Install conda packages (geant4 is not available for aarch64 at the time of writing)
RUN mamba install -y -c conda-forge \
Expand Down

0 comments on commit 947177b

Please sign in to comment.