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