Skip to content

Commit

Permalink
actions: restore conda pkg cache
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmmacleod committed Jan 6, 2025
1 parent 41c4049 commit a27f4f3
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,26 +53,22 @@ jobs:
with:
fetch-depth: 0

# EG 13 Dec 2024: commenting out broken cache
# - name: Cache conda packages
# uses: actions/cache@v4
# env:
# # increment to reset cache
# CACHE_NUMBER: 0
# with:
# path: ~/conda_pkgs_dir
# key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}
# restore-keys: ${{ runner.os }}-conda-${{ matrix.python-version }}-
- name: Cache conda packages
uses: actions/cache@v4
env:
# increment to reset cache
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ matrix.python-version }}-${{ env.CACHE_NUMBER }}
restore-keys: ${{ runner.os }}-conda-${{ matrix.python-version }}-

- name: Configure conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
channels: conda-forge
activate-environment: test
miniforge-version: latest
python-version: ${{ matrix.python-version }}
# this is needed for caching to work properly:
# EG 13 Dec 2024: commenting out broken cache
# use-only-tar-bz2: true

- name: Conda info
run: conda info --all
Expand Down

0 comments on commit a27f4f3

Please sign in to comment.