From 7cc3c74bd5ef93d4700fe56f7622a1bd23aaafaa Mon Sep 17 00:00:00 2001 From: ssun30 Date: Fri, 22 Nov 2024 12:08:32 -0500 Subject: [PATCH] Conda build now only use conda-forge channel --- .github/workflows/conda_build.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conda_build.yml b/.github/workflows/conda_build.yml index 8cfcf6e55a..1de131559e 100644 --- a/.github/workflows/conda_build.yml +++ b/.github/workflows/conda_build.yml @@ -13,13 +13,24 @@ jobs: shell: bash -l {0} steps: - uses: actions/checkout@v4 + + # Step to create a custom condarc.yml before setting up conda + - name: Create custom conda config file + run: | + RUNNER_CWD=$(pwd) + echo "channels:" > $RUNNER_CWD/condarc.yml + echo " - conda-forge" >> $RUNNER_CWD/condarc.yml + echo "show_channel_urls: true" >> $RUNNER_CWD/condarc.yml + - name: Setup Conda uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: false conda-solver: libmamba + condarc-file: condarc.yml auto-activate-base: true activate-environment: "" + - name: Install Build Tools run: conda install python anaconda-client conda-build - name: Configure Auto-Upload @@ -38,9 +49,6 @@ jobs: echo "Using CONDA_TOKEN=${CONDA_TOKEN}" echo "CONDA_TOKEN=$CONDA_TOKEN" >> $GITHUB_ENV - - # Add the conda-forge channel - conda config --add channels conda-forge echo "Contents of .conda directory:" ls -al .conda