Skip to content

Commit

Permalink
Add cache for Micromamba installation
Browse files Browse the repository at this point in the history
This endpoint sometimes fails to resolve, so caching as a fallback
should help.
  • Loading branch information
victorlin committed Jan 17, 2024
1 parent 4c25ecf commit 15d7723
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
name: build and test (os=${{ matrix.os }})
runs-on: ${{ matrix.os }}
steps:
# First, retrieve Micromamba from cache in case the installation script is not reachable.
- name: Cache Micromamba
uses: actions/cache@v4
with:
path: ~/.local/bin/micromamba
# Cache should remain for 7 days from last usage.
# <https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy>
key: ${{ runner.os }}-micromamba

- name: Install Micromamba
run: |
curl -fsSL --proto 'https=' https://micro.mamba.pm/install.sh | bash
Expand Down

0 comments on commit 15d7723

Please sign in to comment.