Skip to content

Commit

Permalink
CI: Replace package installation with local action
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lucasdemarchi committed Jul 12, 2024
1 parent 72ce9f0 commit 8e1de31
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
22 changes: 22 additions & 0 deletions .github/actions/setup-ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 8e1de31

Please sign in to comment.