Skip to content

Commit 4db2187

Browse files
authored
Merge pull request #350 from CGarces/fix_cicd
Remove multiple GCC builds Update to GCC 14
2 parents a5ac678 + 1dab98d commit 4db2187

File tree

1 file changed

+6
-24
lines changed

1 file changed

+6
-24
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,14 @@ jobs:
2323
echo ::set-output name=matrix::${VERSIONSARRAY}
2424
build:
2525
needs: commontasks
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-latest
2727
strategy:
2828
fail-fast: false
2929
matrix:
3030
kernel_version: ${{fromJson(needs.commontasks.outputs.matrix)}}
31-
gcc_version: [9, 10, 12]
3231
# kernel_version: [6.1-rc1]
3332
steps:
34-
- name: Check Versions
35-
id: check_version
36-
shell: bash {0}
37-
run: |
38-
echo ::set-output name=skip_build::False
39-
dpkg --compare-versions "${{matrix.kernel_version}}" "ge" "5.15"
40-
if [ $? -eq "0" ] && [ ${{matrix.gcc_version}} -lt 12 ];
41-
then
42-
echo "GCC version not compatible"
43-
echo ::set-output name=skip_build::True
44-
fi
4533
- name: Download kernel packages
46-
if: steps.check_version.outputs.skip_build == 'False'
4734
run: |
4835
KERNEL_URL=https://kernel.ubuntu.com/~kernel-ppa/mainline/
4936
KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${{matrix.kernel_version}}/ | grep -A8 "Build for amd64\|Test amd64")
@@ -53,18 +40,13 @@ jobs:
5340
[ -z "$AMD64_DEB" ] && exit 2
5441
wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$AMD64_DEB
5542
wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$ALL_DEB
56-
wget -nv http://mirrors.kernel.org/ubuntu/pool/main/g/glibc/libc6_2.38-1ubuntu6_amd64.deb
5743
echo "KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic" >> $GITHUB_ENV
58-
- name: Set up GCC
59-
if: steps.check_version.outputs.skip_build == 'False'
60-
uses: egor-tensin/setup-gcc@v1
61-
with:
62-
version: ${{matrix.gcc_version }}
6344
- name: install deb packages
64-
if: steps.check_version.outputs.skip_build == 'False'
6545
run: sudo dpkg --force-all -i *.deb
46+
- name: update GCC
47+
run: |
48+
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 14
49+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 14
6650
- uses: actions/checkout@v2
67-
if: steps.check_version.outputs.skip_build == 'False'
68-
- name: build kernel ${{ matrix.kernel_version }} - GCC ${{ matrix.gcc_version }}
69-
if: steps.check_version.outputs.skip_build == 'False'
51+
- name: build kernel ${{ matrix.kernel_version }}
7052
run: make KVER=$KVER CC=cc

0 commit comments

Comments
 (0)