Skip to content

Commit

Permalink
NEW: Cache packages when building locally
Browse files Browse the repository at this point in the history
  • Loading branch information
carterbox committed Jun 5, 2022
1 parent f64192f commit 495b2aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .ci_support/build_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ def check_recipes_in_correct_dir(root_dir, correct_dir):
from pathlib import Path
for path in Path(root_dir).rglob('meta.yaml'):
path = path.absolute().relative_to(root_dir)
if path.parts[0] == 'build_artifacts':
# ignore pkg_cache in build_artifacts
continue
if path.parts[0] != correct_dir:
raise RuntimeError(f"recipe {path.parts} in wrong directory")
if len(path.parts) != 3:
Expand Down
6 changes: 5 additions & 1 deletion .scripts/build_steps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ channels:
- conda-forge
conda-build:
root-dir: /home/conda/staged-recipes/build_artifacts
root-dir: /home/conda/staged-recipes/build_artifacts
pkgs_dirs:
- /home/conda/staged-recipes/build_artifacts/pkg_cache
- /opt/conda/pkgs
show_channel_urls: true
Expand Down

0 comments on commit 495b2aa

Please sign in to comment.