8 group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9 cancel-in-progress: true
15 - uses: actions/checkout@v4
17 ref: ${{ github.event.pull_request.head.sha }}
18 - name: Install dependencies
20 # for x in lxd core20 snapd; do sudo snap remove $x; done
21 sudo apt-get purge -y snapd google-chrome-stable firefox
22 ONLY_DEPS=1 .github/workflows/scripts/qemu-3-deps.sh ubuntu22
23 sudo apt-get install -y cppcheck devscripts mandoc pax-utils shellcheck
24 sudo python -m pipx install --quiet flake8
25 # confirm that the tools are installed
26 # the build system doesn't fail when they are not
27 checkbashisms --version
34 sed -i '/DEBUG_CFLAGS="-Werror"/s/^/#/' config/zfs-build.m4
41 make -j$(nproc) --no-print-directory --silent
44 make -j$(nproc) --no-print-directory --silent checkstyle
47 make -j$(nproc) --no-print-directory --silent lint
51 docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent checkabi
53 if: failure() && steps.CheckABI.outcome == 'failure'
55 docker run -v $PWD:/source ghcr.io/openzfs/libabigail make -j$(nproc) --no-print-directory --silent storeabi
56 - name: Prepare artifacts
57 if: failure() && steps.CheckABI.outcome == 'failure'
59 find -name *.abi | tar -cf abi_files.tar -T -
60 - uses: actions/upload-artifact@v4
61 if: failure() && steps.CheckABI.outcome == 'failure'
63 name: New ABI files (use only if you're sure about interface changes)