From 638f08f84875e735aaf1776fa2ca6e8d0cee6135 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= <CGarces@users.noreply.github.com>
Date: Sun, 23 Feb 2025 20:13:48 +0000
Subject: [PATCH 1/3] Remove dependence not needed

---
 .github/workflows/build.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 04f291b..1eebc7e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -53,7 +53,6 @@ jobs:
           [  -z "$AMD64_DEB" ] && exit 2
           wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$AMD64_DEB
           wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$ALL_DEB
-          wget -nv http://mirrors.kernel.org/ubuntu/pool/main/g/glibc/libc6_2.38-1ubuntu6_amd64.deb
           echo "KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic" >> $GITHUB_ENV
       - name: Set up GCC
         if: steps.check_version.outputs.skip_build == 'False'

From 0d60c5e46a28fde26c8d01056b579733f190a433 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= <CGarces@users.noreply.github.com>
Date: Sun, 23 Feb 2025 20:22:38 +0000
Subject: [PATCH 2/3] Removed multiple gcc builds Looks like
 egor-tensin/setup-gcc@v1 is no longer mantained

---
 .github/workflows/build.yml | 27 +++++----------------------
 1 file changed, 5 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1eebc7e..01775d8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,22 +28,9 @@ jobs:
       fail-fast: false
       matrix:
         kernel_version: ${{fromJson(needs.commontasks.outputs.matrix)}}
-        gcc_version: [9, 10, 12]
         # kernel_version: [6.1-rc1]
     steps:
-      - name: Check Versions
-        id: check_version
-        shell: bash {0}
-        run: |
-          echo ::set-output name=skip_build::False
-          dpkg --compare-versions "${{matrix.kernel_version}}" "ge" "5.15"
-          if [ $? -eq "0" ] && [ ${{matrix.gcc_version}} -lt 12 ];
-          then
-            echo "GCC version not compatible"
-            echo ::set-output name=skip_build::True
-          fi
       - name: Download kernel packages
-        if: steps.check_version.outputs.skip_build == 'False'
         run: |
           KERNEL_URL=https://kernel.ubuntu.com/~kernel-ppa/mainline/
           KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${{matrix.kernel_version}}/ | grep -A8 "Build for amd64\|Test amd64")
@@ -54,16 +41,12 @@ jobs:
           wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$AMD64_DEB
           wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$ALL_DEB
           echo "KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic" >> $GITHUB_ENV
-      - name: Set up GCC
-        if: steps.check_version.outputs.skip_build == 'False'
-        uses: egor-tensin/setup-gcc@v1
-        with:
-          version: ${{matrix.gcc_version }}
       - name: install deb packages
-        if: steps.check_version.outputs.skip_build == 'False'
         run: sudo dpkg --force-all -i *.deb
+      - name: update GCC
+        run: |
+          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
+          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
       - uses: actions/checkout@v2
-        if: steps.check_version.outputs.skip_build == 'False'
-      - name: build kernel ${{ matrix.kernel_version }} - GCC ${{ matrix.gcc_version }}
-        if: steps.check_version.outputs.skip_build == 'False'
+      - name: build kernel ${{ matrix.kernel_version }}
         run: make KVER=$KVER CC=cc

From 1dab98d4d332f7419cb9ada1aff46f464f503872 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= <CGarces@users.noreply.github.com>
Date: Sun, 23 Feb 2025 20:48:37 +0000
Subject: [PATCH 3/3] Bump github actions to ubuntu 24 Allow to use GCC 14

---
 .github/workflows/build.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 01775d8..5871858 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -23,7 +23,7 @@ jobs:
           echo ::set-output name=matrix::${VERSIONSARRAY}
   build:
     needs: commontasks
-    runs-on: ubuntu-22.04
+    runs-on: ubuntu-latest
     strategy:
       fail-fast: false
       matrix:
@@ -45,8 +45,8 @@ jobs:
         run: sudo dpkg --force-all -i *.deb
       - name: update GCC
         run: |
-          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
-          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
+          sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
+          sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14
       - uses: actions/checkout@v2
       - name: build kernel ${{ matrix.kernel_version }}
         run: make KVER=$KVER CC=cc