summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 11:40:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-09 11:40:59 +0000
commitad73653d36c9bd59872479e3c41f8942c70945b9 (patch)
treef184315b3ad68109e86aa4bd5bba3de919bfa3e3 /.github
parentAdding upstream version 4.3+20240723. (diff)
downloadmdadm-ad73653d36c9bd59872479e3c41f8942c70945b9.tar.xz
mdadm-ad73653d36c9bd59872479e3c41f8942c70945b9.zip
Adding upstream version 4.3+20241108.upstream/4.3+20241108upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x.github/tools/install_ubuntu_packages.sh4
-rw-r--r--.github/workflows/review.yml18
2 files changed, 13 insertions, 9 deletions
diff --git a/.github/tools/install_ubuntu_packages.sh b/.github/tools/install_ubuntu_packages.sh
index 1a31ca4..4c88613 100755
--- a/.github/tools/install_ubuntu_packages.sh
+++ b/.github/tools/install_ubuntu_packages.sh
@@ -7,6 +7,6 @@ echo "Detected VERSION_CODENAME: $VERSION_CODENAME"
sudo add-apt-repository -y "deb [arch=amd64] http://archive.ubuntu.com/ubuntu $VERSION_CODENAME \
main universe"
# Install gcc
-sudo apt-get -y update && sudo apt-get -y install gcc-$1
+sudo apt-get -y install gcc-$1 --no-upgrade --no-install-recommends --no-install-suggests
# Install dependencies
-sudo apt-get -y install make gcc libudev-dev devscripts
+sudo apt-get -y install make gcc libudev-dev devscripts --no-upgrade --no-install-recommends --no-install-suggests
diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml
index 3fa29f6..e5fbf4e 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 CXGALGS=-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