summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-25 06:14:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-07-25 06:14:23 +0000
commit201d885cf454e026cf59e18961f025bcfa8a3142 (patch)
treebaf91f410e825f7768de9be51fe5e8556333bc7b /.github/workflows
parentReleasing debian version 4.3+20240412-1. (diff)
downloadmdadm-201d885cf454e026cf59e18961f025bcfa8a3142.tar.xz
mdadm-201d885cf454e026cf59e18961f025bcfa8a3142.zip
Merging upstream version 4.3+20240723.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/review.yml41
1 files changed, 41 insertions, 0 deletions
diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml
new file mode 100644
index 0000000..3fa29f6
--- /dev/null
+++ b/.github/workflows/review.yml
@@ -0,0 +1,41 @@
+name: review
+on: [pull_request]
+env:
+ cflags: -Werror
+jobs:
+ make:
+ runs-on: ubuntu-latest
+ name: Compilation test with gcc
+ strategy:
+ matrix:
+ gcc-version: [7, 8, 9, 10, 11, 12, 13]
+ steps:
+ - uses: actions/checkout@v4
+ - name: 'Add ubuntu repository and install dependencies'
+ run: .github/tools/install_ubuntu_packages.sh ${{ matrix.gcc-version }}
+ - name: 'Make with DEBUG flag'
+ run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXFLAGS=-DEBUG && make clean
+ - name: 'Make with DEBIAN flag'
+ run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXGALGS=-DEBIAN && make clean
+ - name: 'Make with USE_PTHREADS flag'
+ run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXFLAGS=-USE_PTHREADS && make clean
+ - name: 'Make with DNO_LIBUDEV flag'
+ run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXFLAGS=-DNO_LIBUDEV && make clean
+ - name: 'Make'
+ run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc)
+ - name: hardening-check mdadm
+ run: hardening-check mdadm
+ - name: hardening-check mdmon
+ run: hardening-check mdmon
+ checkpatch:
+ runs-on: ubuntu-latest
+ name: checkpatch review
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 0
+ - name: 'Move prepared .checkpatch.conf file to main directory'
+ run: mv .github/tools/.checkpatch.conf .
+ - name: Run checkpatch review
+ uses: webispy/checkpatch-action@v9