Skip to content

Commit 926046a

Browse files
committed
use cache in conda-build
1 parent 25c6ccb commit 926046a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
path: dist
148148

149149
conda-build:
150-
needs: test # only so we run tests even if the pinned bioimageio.spec version is not yet published on conda-forge yet
150+
needs: [populate-cache, test] # only so we run tests even if the pinned bioimageio.spec version is not yet published on conda-forge
151151
runs-on: ubuntu-latest
152152
steps:
153153
- uses: actions/checkout@v4
@@ -169,11 +169,17 @@ jobs:
169169
pkgs/noarch
170170
pkgs/channeldata.json
171171
key: ${{ github.sha }}-packages
172+
- uses: actions/cache@v4
173+
with:
174+
path: bioimageio_cache
175+
key: ${{needs.populate-cache.outputs.cache-key}}
172176
- name: linux conda build test
173177
shell: bash -l {0}
174178
run: |
175179
mkdir -p ./pkgs/noarch
176180
conda-build -c conda-forge conda-recipe --output-folder ./pkgs
181+
env:
182+
BIOIMAGEIO_CACHE_PATH: bioimageio_cache
177183

178184
docs:
179185
needs: test

0 commit comments

Comments
 (0)