mlorenzati / pico-rgb2hdmi

A microprocessed RGB to HDMI Converter with USB capture
MIT License
82 stars 13 forks source link

Build binaries using GitHub Actions Pipeline #33

Closed charlysan closed 1 year ago

charlysan commented 1 year ago

Issue #32

Description

  1. Adds pipeline file using GitHub Actions:
    • Build job will try to build the project using Docker container. This job will be triggered by any push action.
    • Binaries will be stored as artifacts to be shared with publish job
    • Publish job will be triggered only if new tag/release is created. The job will take binaries from previous job, compress them in a zip file and push the zip file to the release that triggered the action as new asset.
  2. Adds badge in Readme file that shows build status for main branch.

image

Testing

-- Go to Settings -> Developer settings -> Personal Access Tokens and create a new personal token with public_repo permission:

image

-- Go to repo Settings, and add a new secret named PUBLIC_REPO_ACCESS_TOKEN and set its value to the token created in previous step.

image

-- Generate a new status badge from Actions page:

image

This should generate the needed svg file used in Readme File.

-- Go to Actions page and check that the Build pipeline has successfully ran:

image

-- Create a new tag (and choose the correct branch). This should triggered the publish job and you should see the zip within Assets section for that release

image

Note: the .uf2 file generated by pico-sdk using the default config does not work for me. I guess I'm missing some flag/config. This needs to be checked. Building other projects using this approach works as expected though (e.g. PicoDVI)