Skip to content

ubuntu-robotics/snap_workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Archived repo

This repository has been archived in favor of robotics action workflows.

snap_workflows

Repository storing reusable workflows for snaps.

These workflows are intended to be re-used in github actions building snaps.

Having reusable workflows helps with the execution of scheduled workflows and reduces code duplication. Reusing workflows allows to create new workflows more quickly by avoiding to duplicate common steps.

In this repository there are two reusable workflows:

  • snap.yaml: this reusable workflow provides a template for building, installing and testing snaps. It provides various inputs to flexibly build snaps and it also allows the user to pass a custom bash script that can be used for testing.
  • snap-lxc.yaml: this reusable workflow uses the previous workflow to build snaps, but then it uses lxc containers to perform testing. This is useful in case we need to perform testing with the snap on deprecated images (e.g. ubuntu 18.04).

How to use

Below is shown an example on how to call these reusable workflows in a github repository to build and test a snap. The required input parameters must be defined for the workflow to run correctly.

jobs:
  main-snap:
    uses: ubuntu-robotics/snap_workflows/.github/workflows/snap.yaml@main
    with:
      branch-name: main   ## this is the branch containing the snapcraft.yaml that we want to build
      snap-name: ros2-talker-listener
      snap-install-args: --devmode
      test-script: |
                    #!/bin/bash
                    echo "Testing custom bash script"

A complete working example can be found here.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •