Skip to content

Conversation

@robtaylor
Copy link
Contributor

Summary

Adds caching for the ~/.cache directory in GitHub Actions CI workflows to improve build performance by caching build artifacts, YoWASP products, and other temporary files between runs.

Note: This PR is based on #60 (chipflow API migration) and should be merged after it.

Changes

Caching Improvements:

  • Add ~/.cache directory caching to both submit and test jobs
  • Cache key based on: OS + design + dependency files (pyproject.toml, pdm.lock)
  • Fallback restore keys for partial cache matches
  • Replaces specific YoWASP cache (now included in general ~/.cache)

Action Updates:

  • Update actions/setup-python from v4 to v5 (v4 runner deprecated)

Benefits

  • Faster CI runs: Cached YoWASP and build artifacts reduce redundant downloads
  • Reduced network usage: Fewer downloads from external sources
  • Better cache utilization: Hierarchical restore-keys provide fallback options

Testing

✅ Workflow syntax validated with actionlint
✅ Cache keys properly scoped by OS and design
✅ Restore-keys provide appropriate fallback hierarchy

🤖 Generated with Claude Code

robtaylor and others added 3 commits November 12, 2025 20:10
Update all imports to use the new chipflow package name instead of
the deprecated chipflow_lib name. This follows the package rename
that occurred in chipflow-lib (commit affc32b, Oct 2025).

Changes:
- chipflow_lib.platforms → chipflow.platform
- chipflow_lib.steps.* → chipflow.platform
- chipflow_lib.config → chipflow.config
- chipflow_lib → chipflow (for exceptions)

All imports have been updated across both minimal and mcu_soc examples,
including design files, step implementations, and custom IP peripherals.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Adds caching for the ~/.cache directory in both submit and test jobs
to improve CI performance by caching build artifacts, YoWASP products,
and other temporary files.

Changes:
- Add ~/.cache caching with keys based on OS, design, and dependencies
- Replace specific YoWASP cache with general ~/.cache (includes YoWASP)
- Update actions/setup-python from v4 to v5 (v4 runner is deprecated)
- Use restore-keys for fallback cache matching

This reduces redundant builds and downloads across CI runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants