From 609dea61139e408ebac19cb01d53393cb0c92ca2 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:21:28 +0530 Subject: [PATCH] Run `conda init` before `conda activate` --- .github/workflows/publish_pypi.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index edf2b65f21..2454fc4631 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -168,10 +168,11 @@ jobs: output-dir: wheelhouse env: CIBW_BEFORE_ALL: | + conda init conda activate pybamm-dev - export CC=$(conda run -n pybamm-dev which clang) - export CXX=$(conda run -n pybamm-dev which clang++) - export FC=$(conda run -n pybamm-dev which gfortran) + # export CC=$(conda run -n pybamm-dev which clang) + # export CXX=$(conda run -n pybamm-dev which clang++) + # export FC=$(conda run -n pybamm-dev which gfortran) python -m pip install cmake pipx python scripts/install_KLU_Sundials.py CIBW_ARCHS_MACOS: auto