Add description of Packaged Custom Chips - #222
Conversation
…hips
* Update chips-api/getting-started to discuss packaged custom chips
* Update diagram-format to discuss dependencies
|
Thinking out loud: So there are a few ways to make the chip.zip file,
The inverter chip setup confused me because there are several different ways of getting the job done, and you don't /need/ to do all of them. |
|
**** Creating a |
| Requirement | Recommended approach |
|---|---|
| Simple local build | Command line |
| Repeatable local builds | Makefile |
| Automatic builds after code changes | GitHub Actions |
| Team-based development | GitHub Actions |
| Quick experimentation | Command line |
| Standardized project build process | Makefile |
The important distinction is that these methods represent different ways of accomplishing the same objective:
Create chip.zip
│
┌────────────┼────────────┐
↓ ↓ ↓
Makefile GitHub CI Command Line
│ │ │
└────────────┼────────────┘
↓
chip.zip
Recommended Approach
For a new project, start with the command-line build process so that you understand exactly how the chip is compiled and which files are required. Once the process works reliably, you can place those commands in a Makefile to make local builds easier to reproduce.
When the project is hosted on GitHub and requires automatic builds, the same build process can then be incorporated into GitHub Actions.
This gives a logical progression:
Understand the build
↓
Compile manually
↓
Automate with Makefile
↓
Automate in GitHub Actions
However, the latter stages are optional. You only need one working method to generate chip.zip; a Makefile and GitHub Actions are conveniences for automation, not prerequisites for one another.
docs(chips-api/packaged-chip): Add description of Packaged Custom Chips