From dc21d110d4660bb1fbb084e3fcb53596fdd38d41 Mon Sep 17 00:00:00 2001 From: Benoy Alexander Date: Wed, 5 Jun 2024 00:35:07 -0500 Subject: [PATCH] Trying with action conda-incubator --- .github/workflows/macos-build.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 8e6805d2..489854dd 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -63,11 +63,20 @@ jobs: ${{ matrix.os }}-${{ matrix.BUILD_TYPE }}-${{ matrix.COMPILER }}-ccache - name: Setup Conda Environment - run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory - $CONDA/bin/conda config --set channel_priority strict - $CONDA/bin/conda env update --file ${{ github.workspace }}/.github/workflows/conda/macos_env.yml - $CONDA/bin/conda init bash + uses: conda-incubator/setup-miniconda@v2 + with: + miniforge-variant: Mambaforge + channels: conda-forge,defaults + channel-priority: true + activate-environment: riscv_perf_model + environment-file: .github/workflows/conda/macos_env.yml + +# - name: Setup Conda Environment +# run: | +# # $CONDA is an environment variable pointing to the root of the miniconda directory +# $CONDA/bin/conda config --set channel_priority strict +# $CONDA/bin/conda env update --file ${{ github.workspace }}/.github/workflows/conda/macos_env.yml +# $CONDA/bin/conda init bash # Build - name: Build & Regress