mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
CircleCI is limiting how many runs we can do, which results in pipelines randomly failing when we've used up the credits for this month. Let's add a github workflow instead. Unfortunately github workflows are a bit of a toy api, no support for YAML anchors or extending other jobs, so there's a lot of duplication needed to get a job to do something. The actions added in this patch help a bit to make the jobs easier to understand (copied from libwacom). This only runs on Ubuntu right now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
18 lines
547 B
YAML
18 lines
547 B
YAML
name: "Install packages"
|
|
description: "Install a set of packages from sources"
|
|
inputs:
|
|
apt:
|
|
description: "The package list to install with apt"
|
|
pip:
|
|
description: "The package list to install with pip"
|
|
pip_precmd:
|
|
description: "Set to the string 'sudo' to run through sudo"
|
|
default: ""
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- run: sudo ${{ github.action_path }}/install-apt.sh ${{ inputs.apt }}
|
|
shell: bash
|
|
- run: ${{inputs.pip_precmd}} ${{ github.action_path }}/install-pip.sh ${{ inputs.pip }}
|
|
shell: bash
|