mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 15:00:52 +07:00
ci: Replace package installation with local action
Separate the package installation step with a local action so it's easier to support more versions and distros. Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com> Reviewed-by: Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Link: https://github.com/kmod-project/kmod/pull/44
This commit is contained in:
parent
5cdd221d88
commit
da6345d17a
22
.github/actions/setup-ubuntu/action.yml
vendored
Normal file
22
.github/actions/setup-ubuntu/action.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
name: 'setup Ubuntu'
|
||||
description: 'Setup an Ubuntu container for running CI'
|
||||
runs:
|
||||
using: 'composite'
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --yes \
|
||||
build-essential \
|
||||
autoconf \
|
||||
automake \
|
||||
gtk-doc-tools \
|
||||
libssl-dev \
|
||||
liblzma-dev \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
libzstd-dev \
|
||||
linux-headers-generic \
|
||||
scdoc \
|
||||
zstd
|
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
@ -11,23 +11,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --yes \
|
||||
build-essential \
|
||||
autoconf \
|
||||
automake \
|
||||
gtk-doc-tools \
|
||||
libssl-dev \
|
||||
liblzma-dev \
|
||||
libssl-dev \
|
||||
libtool \
|
||||
libzstd-dev \
|
||||
linux-headers-generic \
|
||||
scdoc \
|
||||
zstd \
|
||||
- uses: ./.github/actions/setup-ubuntu
|
||||
|
||||
- name: configure
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user