summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinga Stefaniuk <kinga.stefaniuk@intel.com>2024-07-31 16:24:37 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-08-06 13:53:54 +0200
commit18f6abca8d689206807c03469d6f53621507b263 (patch)
tree63ce24300002d4032724dc6f67ecc38be6ac3c6b
parentsuper-intel: add define for migr_state (diff)
downloadmdadm-18f6abca8d689206807c03469d6f53621507b263.tar.xz
mdadm-18f6abca8d689206807c03469d6f53621507b263.zip
CI: add new gcc 14
Add new released gcc to compilation test during GH action. Change runner to Ubuntu 24.04 which supports gcc versions up to 14. Previously ubuntu-latest was used (22.04) which didn't support gcc 13 and 14. Add verification if correct gcc was installed during test. Signed-off-by: Kinga Stefaniuk <kinga.stefaniuk@intel.com>
-rw-r--r--.github/workflows/review.yml18
1 files changed, 11 insertions, 7 deletions
diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml
index 0b059b41..e5fbf4ee 100644
--- a/.github/workflows/review.yml
+++ b/.github/workflows/review.yml
@@ -4,25 +4,29 @@ env:
cflags: -Werror
jobs:
make:
- runs-on: ubuntu-latest
+ # when gcc is not found, it may be needed to update runner version
+ runs-on: ubuntu-24.04
name: Compilation test with gcc
strategy:
matrix:
- gcc-version: [7, 8, 9, 10, 11, 12, 13]
+ # gcc-versions are used to test up to 5 years old
+ gcc-version: [9, 10, 11, 12, 13, 14]
steps:
- uses: actions/checkout@v4
- name: 'Add ubuntu repository and install dependencies'
run: .github/tools/install_ubuntu_packages.sh ${{ matrix.gcc-version }}
+ - name: 'Check if gcc was installed correctly'
+ run: gcc-${{ matrix.gcc-version }} --version
- name: 'Make with DEBUG flag'
- run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXFLAGS=-DEBUG && make clean
+ run: V=1 make -j$(nproc) -B CC=gcc-${{ matrix.gcc-version }} CXFLAGS=-DEBUG && make clean
- name: 'Make with DEBIAN flag'
- run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc) -B CXFLAGS=-DEBIAN && make clean
+ run: V=1 make -j$(nproc) -B CC=gcc-${{ matrix.gcc-version }} CXFLAGS=-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
+ run: V=1 make -j$(nproc) -B CC=gcc-${{ matrix.gcc-version }} 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
+ run: V=1 make -j$(nproc) -B CC=gcc-${{ matrix.gcc-version }} CXFLAGS=-DNO_LIBUDEV && make clean
- name: 'Make'
- run: CC=gcc-${{ matrix.gcc-version }} && V=1 make -j$(nproc)
+ run: V=1 make -j$(nproc) CC=gcc-${{ matrix.gcc-version }}
- name: hardening-check mdadm
run: hardening-check mdadm
- name: hardening-check mdmon