Jump to content

[Armbian build PR] - more of rpardini's GHA & pipeline stuff (early May/23)


RSS Bot

Recommended Posts

more of rpardini's GHA & pipeline stuff (early May/23)

  • pipeline: cli: add proper gha- prefix to CLI commands that have something to do with GitHub Actions (thus gha-matrix now, and the new gha-template)
  • stop at the correct places for inventory and targets non-GHA-specific commands
  • handle gha-template first (and return), since it does not really depend on any info/targets/etc
    • batcat the output for show-off
  • pipeline: add output-gha-workflow-template.py utility, for rendering GHA workflow YAML templates with chunks
    • python-tools: add Jinja2. Incredible how we made it this far without it.
    • output-gha-workflow-template: a double-templater, first runs jinja with a custom syntax, then "moar magic" to be useful for GHA
  • pipeline: targets-compositor: whole target can be enabled: no to quickly disable it (as if it wasn't there)
  • pipeline: output-gha-matrix: directly GHA-output images-chunk-json-2, images-chunk-not-empty-2, images-chunk-size-2 and artifacts-xxx with no fake entry
    • as alternative to the full output, this allows us to skip chunkjobs when they're empty, and hopefully makes GHA-JSON-parsing 10x faster
  • pipeline: output-gha-matrix: new input.pipeline.gha.runners in the targets.yaml for mapping GHA's runs_on based on name and arch
  • artifact kernel/uboot: add ARCH to artifact_input_variables; used for (maybe) mapping to runner tags in JSON pipeline

View the full article

Link to comment
Share on other sites

Armbian & Khadas are rewarding contributors

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines