Skip to content

Commit e22afd1

Browse files
authored
switch build to micromamba
1 parent 60ecd72 commit e22afd1

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,30 @@ jobs:
2323
strategy:
2424
matrix:
2525
python-version: [3.8, 3.9, "3.10", "3.11"]
26-
torch: [1.13.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0]
26+
torch: [1.13.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0]
2727
# https://github.com/marketplace/actions/setup-miniconda#use-a-default-shell
2828
defaults:
2929
run:
3030
shell: bash -l {0}
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v3
34-
# See: https://github.com/marketplace/actions/setup-miniconda
35-
- name: Setup miniconda
36-
uses: conda-incubator/setup-miniconda@v3
34+
# See: https://github.com/mamba-org/setup-micromamba/tree/main
35+
- name: Setup micromamba
36+
- uses: mamba-org/setup-micromamba@v2
3737
with:
38-
auto-update-conda: true
39-
miniforge-variant: Mambaforge
40-
channels: "conda-forge, salilab, pytorch, pyg"
41-
python-version: ${{ matrix.python-version }}
42-
use-mamba: true
38+
micromamba-version: 'latest'
39+
init-shell: bash
40+
cache-environment: true
41+
cache-environment-key: environment-${{ steps.date.outputs.date }}
42+
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
43+
post-cleanup: 'all'
4344
- name: Install setuptools
4445
run: pip install setuptools==69.5.1
4546
- name: Install Boost 1.7.3 (for DSSP)
46-
run: conda install -c anaconda libboost=1.73.0
47+
run: mamba install -c anaconda libboost=1.73.0
4748
- name: Install DSSP
48-
run: conda install dssp -c salilab
49+
run: mamba install dssp -c salilab
4950
- name: Install mmseqs
5051
run: mamba install -c conda-forge -c bioconda mmseqs2
5152
- name: Install PyTorch (1.13.0)

0 commit comments

Comments
 (0)