Skip to content

Commit

Permalink
Add miniconda installation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjcroucher committed May 28, 2024
1 parent bbb2c8c commit 0f2f560
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Set up miniconda
steps:
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.9
- name: Conda info
shell: bash -el {0}
- name: Install dependencies with conda
run: |
source $CONDA/etc/profile.d/conda.sh && conda env update --file environment.yml
sudo chown -R $UID $CONDA && source $CONDA/etc/profile.d/conda.sh && conda env update --file environment.yml
- name: Run C and python tests
run: |
source $CONDA/etc/profile.d/conda.sh && conda activate gubbins_env && FILES=`ls -l1 $CONDA_PREFIX/lib/clang/*/lib/darwin/*`; for clang_dir in $(ls -d1 $CONDA_PREFIX/lib/clang/*); do if [[ ! -d "$clang_dir/lib/darwin" ]]; then mkdir -p $clang_dir/lib/darwin; for clang_file in $(echo $FILES); do ln -s $clang_file $clang_dir/lib/darwin/; done; fi; done && export PATH=$PATH:/lib/python3.9/site-packages/ && autoreconf -i && ./configure --prefix=$CONDA_PREFIX --exec_prefix $CONDA_PREFIX CFLAGS="-O0 -I${CONDA_PREFIX}/include/" LDFLAGS="-L${CONDA_PREFIX}/lib/ -Wl,-rpath,${CONDA_PREFIX}/lib/" --host=x86_64-apple-darwin --build=x86_64-apple-darwin && make && make install && make check
Expand Down

0 comments on commit 0f2f560

Please sign in to comment.