adafruit/Build package of .mpy files

Build mpy-cross for usage in GitHub Actions

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Feb 17, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: adafruit/build-mpy@9078cbecba992d2f94475eb2ddee7dbd00947083 # v2.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenYour GitHub token, needed to upload the ZIP fileyes
circuitpy-versionThe version of CircuitPython to useyes
zip-filenameThe name of the ZIP file to attachyesmpy-release.zip
mpy-directoryThe directory to look for files to compile with mpy-cross. If none is provided, the root directory will be used. This also becomes the basis for filepaths in the mpy manifest file, if one is provided. yes.
mpy-manifest-filePath to a manifest file containing filepaths to convert. If no manifest is provided, all applicable files will be converted. yes""
mpy-manifest-typeThe type of manifest to use for compiling if one is provided. The default is "include", but if "exclude" is provided, then all Python files EXCEPT the ones listed will be compiled with mpy-cross. yesinclude
zip-directoryThe directory of files to bundle. If none is provided, the root directory will be used. This also becomes the basis for filepaths in the zip manifest file, if one is provided. yes.
zip-manifest-filePath to a manifest file containing filepaths to include in the zip file. If no manifest is provided, all files will be included. Either this or exclude-zip-manifest can be defined. yes""
zip-manifest-typeThe type of manifest to use for zipping, if one is provided. The default is "include", but if "exclude" is provided, then all files EXCEPT the ones listed will be zipped. yesinclude
compiler-directoryThe directory where the mpy-cross compiler will be downloaded. yescircuitpy-compiler

no outputs