Ubuntu 22.04 integration: GitHub workflows
- GitHub workflows are run on Ubuntu 22.04 - Extract the `checkstyle` workflow dependencies to a separate file. - Refresh the `build-dependencies.txt` list. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: szubersk <szuberskidamian@gmail.com> Closes #14148
This commit is contained in:
parent
32ef14de0f
commit
9e7fc5da38
|
@ -23,10 +23,11 @@ libelf-dev
|
||||||
libffi-dev
|
libffi-dev
|
||||||
libmount-dev
|
libmount-dev
|
||||||
libpam0g-dev
|
libpam0g-dev
|
||||||
libselinux-dev
|
libselinux1-dev
|
||||||
libssl-dev
|
libssl-dev
|
||||||
libtool
|
libtool
|
||||||
libudev-dev
|
libudev-dev
|
||||||
|
linux-headers-generic
|
||||||
lsscsi
|
lsscsi
|
||||||
mdadm
|
mdadm
|
||||||
nfs-kernel-server
|
nfs-kernel-server
|
||||||
|
@ -36,8 +37,9 @@ python3
|
||||||
python3-cffi
|
python3-cffi
|
||||||
python3-dev
|
python3-dev
|
||||||
python3-packaging
|
python3-packaging
|
||||||
|
python3-pip
|
||||||
python3-setuptools
|
python3-setuptools
|
||||||
rng-tools
|
rng-tools-debian
|
||||||
rsync
|
rsync
|
||||||
samba
|
samba
|
||||||
sysstat
|
sysstat
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
cppcheck
|
||||||
|
devscripts
|
||||||
|
mandoc
|
||||||
|
pax-utils
|
||||||
|
shellcheck
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checkstyle:
|
checkstyle:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -14,8 +14,9 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
sudo apt-get -qq upgrade
|
||||||
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq
|
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq
|
||||||
sudo apt-get install -qq mandoc cppcheck pax-utils devscripts
|
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/checkstyle-dependencies.txt apt-get install -qq
|
||||||
sudo python3 -m pip install --quiet flake8
|
sudo python3 -m pip install --quiet flake8
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [18.04, 20.04]
|
os: [18.04, 20.04, 22.04]
|
||||||
runs-on: ubuntu-${{ matrix.os }}
|
runs-on: ubuntu-${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -21,7 +21,11 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq
|
sudo apt-get -qq upgrade
|
||||||
|
if [ "${{ matrix.os }}" = "18.04" ]; then
|
||||||
|
sed -i.bak 's/rng-tools-debian/rng-tools/' ${{ github.workspace }}/.github/workflows/build-dependencies.txt
|
||||||
|
fi
|
||||||
|
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
- name: Autogen.sh
|
- name: Autogen.sh
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -17,7 +17,8 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq
|
sudo apt-get -qq upgrade
|
||||||
|
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
- name: Autogen.sh
|
- name: Autogen.sh
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
TEST_DIR: /var/tmp/zloop
|
TEST_DIR: /var/tmp/zloop
|
||||||
steps:
|
steps:
|
||||||
|
@ -16,7 +16,8 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt sudo apt-get install -qq
|
sudo apt-get -qq upgrade
|
||||||
|
sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq
|
||||||
sudo apt-get clean
|
sudo apt-get clean
|
||||||
- name: Autogen.sh
|
- name: Autogen.sh
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue