Skip to content

Commit d9c72c1

Browse files
committed
gha: Attempt (cached) mamba
1 parent 5bda645 commit d9c72c1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/impl.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,24 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@v3
2929

30+
- name: Cache conda
31+
uses: actions/cache@v2
32+
env:
33+
# Increase this value to reset cache if etc/example-environment.yml has not changed
34+
CACHE_NUMBER: 0
35+
with:
36+
path: ~/conda_pkgs_dir
37+
key:
38+
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{hashFiles('implementations/' + inputs.implementation + '/environment.yml') }}
39+
3040
- name: Setup miniconda
3141
uses: conda-incubator/setup-miniconda@v1
3242
with:
3343
auto-update-conda: true
34-
channels: conda-forge,ome
44+
channels: conda-forge,defaults
45+
channel-priority: true
3546
environment-file: implementations/${{ inputs.implementation }}/environment.yml
47+
mamba-version: "*"
3648
python-version: ${{ inputs.python-version }}
3749
env:
3850
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

0 commit comments

Comments
 (0)