From da5cf4987dfb84e23df23f4add0c984cc12c7c37 Mon Sep 17 00:00:00 2001 From: Nick Croucher Date: Tue, 28 May 2024 09:04:46 +0100 Subject: [PATCH] Change CI again for new OSX version --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7abbd6e4..580f7570 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: python-version: 3.9 - name: Install dependencies with conda run: | - sudo chown -R $(whoami) $CONDA && source $CONDA/etc/profile.d/conda.sh && conda env update --file environment.yml + sudo chown -R $(whoami):admin $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