Skip to content

Commit

Permalink
Conda build now only use conda-forge channel
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 committed Nov 22, 2024
1 parent e24f390 commit 7cc3c74
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/conda_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7cc3c74

Please sign in to comment.