2020-08-12 17:46:26 +00:00
|
|
|
name: checkstyle
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-12-01 20:15:55 +00:00
|
|
|
pull_request:
|
2020-08-12 17:46:26 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-08-24 04:15:25 +00:00
|
|
|
checkstyle:
|
2021-03-12 01:11:31 +00:00
|
|
|
runs-on: ubuntu-18.04
|
2020-08-12 17:46:26 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2020-08-24 04:15:25 +00:00
|
|
|
sudo apt-get update
|
2020-08-12 17:46:26 +00:00
|
|
|
sudo apt-get install --yes -qq build-essential autoconf libtool gawk alien fakeroot linux-headers-$(uname -r)
|
|
|
|
sudo apt-get install --yes -qq zlib1g-dev uuid-dev libattr1-dev libblkid-dev libselinux-dev libudev-dev libssl-dev python-dev python-setuptools python-cffi python3 python3-dev python3-setuptools python3-cffi
|
|
|
|
# packages for tests
|
|
|
|
sudo apt-get install --yes -qq parted lsscsi ksh attr acl nfs-kernel-server fio
|
2020-12-06 17:50:47 +00:00
|
|
|
sudo apt-get install --yes -qq mandoc cppcheck pax-utils devscripts abigail-tools
|
2020-08-24 04:15:25 +00:00
|
|
|
sudo -E pip --quiet install flake8
|
2020-08-12 17:46:26 +00:00
|
|
|
- name: Prepare
|
|
|
|
run: |
|
|
|
|
sh ./autogen.sh
|
|
|
|
./configure
|
2020-12-06 17:50:47 +00:00
|
|
|
make -j$(nproc)
|
2020-08-12 17:46:26 +00:00
|
|
|
- name: Checkstyle
|
|
|
|
run: |
|
|
|
|
make checkstyle
|
2020-08-24 04:15:25 +00:00
|
|
|
- name: Lint
|
|
|
|
run: |
|
|
|
|
make lint
|
2020-12-06 17:50:47 +00:00
|
|
|
- name: CheckABI
|
|
|
|
run: |
|
|
|
|
make checkabi
|