{"id":15090189,"url":"https://github.com/brianpugh/install-micropython","last_synced_at":"2025-04-11T20:32:42.651Z","repository":{"id":178150704,"uuid":"648428182","full_name":"BrianPugh/install-micropython","owner":"BrianPugh","description":"Github Action to install micropython.","archived":false,"fork":false,"pushed_at":"2024-11-02T12:49:17.000Z","size":614,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-07T08:03:25.786Z","etag":null,"topics":["action","ci","micropython","mpy-cross"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BrianPugh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"BrianPugh","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-06-02T00:32:19.000Z","updated_at":"2024-11-02T12:49:21.000Z","dependencies_parsed_at":"2024-04-29T17:48:42.688Z","dependency_job_id":null,"html_url":"https://github.com/BrianPugh/install-micropython","commit_stats":null,"previous_names":["brianpugh/install-micropython"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianPugh%2Finstall-micropython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianPugh%2Finstall-micropython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianPugh%2Finstall-micropython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BrianPugh%2Finstall-micropython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BrianPugh","download_url":"https://codeload.github.com/BrianPugh/install-micropython/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223479565,"owners_count":17151931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","ci","micropython","mpy-cross"],"created_at":"2024-09-25T09:23:11.712Z","updated_at":"2024-11-07T08:03:36.284Z","avatar_url":"https://github.com/BrianPugh.png","language":"JavaScript","funding_links":["https://github.com/sponsors/BrianPugh"],"categories":[],"sub_categories":[],"readme":"# install-micropython\n\n[![Basic validation](https://github.com/BrianPugh/install-micropython/actions/workflows/test.yaml/badge.svg?branch=main)](https://github.com/BrianPugh/install-micropython/actions/workflows/test.yaml)\n\nThis action provides the following functionality for GitHub Actions users:\n\n* Builds and installs the following executables:\n    * `micropython` - The micropython runtime. Can be used to run unit tests in conjunction with libraries such as micropython's [`unittest`](https://github.com/micropython/micropython-lib/tree/master/python-stdlib/unittest).\n    * `mpy-cross` - The micropython cross-compiler. Used to cross-compile precompiled bytecode for specific microcontroller architectures.\n* Provides a clone of the micropython repository and sets the environment variable `MPY_DIR` to it's path.\n    * Can be used as for artifact building, like [using native machine code in mpy files](https://docs.micropython.org/en/latest/develop/natmod.html#natmod).\n* Builds are automatically cached, speeding up subsequent runs.\n\n## Basic Usage\nSimply add the following step to your workflow:\n\n```yaml\nsteps:\n  - name: Install MicroPython\n    uses: BrianPugh/install-micropython@v2\n```\n\n## Configuration\nThe `install-micropython` action can be configured by setting values under the `with:` key.\nFor example:\n\n```yaml\nsteps:\n  - uses: BrianPugh/install-micropython@v2\n    with:\n      reference: v1.20.0\n```\n\nInput configuration arguments are described as follows.\n\n#### repository\nThe micropython git url to clone from. Defaults to the official micropython repository.\n\n```yaml\nwith:\n  repository: https://github.com/micropython/micropython\n```\n\n#### reference\nA git reference (tag, commit, or branch) of the micropython repository to use.\n\n```yaml\nwith:\n  reference: v1.20.0\n```\n\n#### cflags\nWhen compiling micropython binaries, this value gets passed along to environment variable `CFLAGS_EXTRA`.\nThis can be used to enable/disable certain micropython features.\n\n```yaml\nwith:\n  cflags: '-DMICROPY_PY_RE_MATCH_GROUPS=1'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpugh%2Finstall-micropython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianpugh%2Finstall-micropython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianpugh%2Finstall-micropython/lists"}