mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-04-11 09:43:33 +00:00
Removed multiple gcc builds
Looks like egor-tensin/setup-gcc@v1 is no longer mantained
This commit is contained in:
parent
638f08f848
commit
0d60c5e46a
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
@ -28,22 +28,9 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
kernel_version: ${{fromJson(needs.commontasks.outputs.matrix)}}
|
kernel_version: ${{fromJson(needs.commontasks.outputs.matrix)}}
|
||||||
gcc_version: [9, 10, 12]
|
|
||||||
# kernel_version: [6.1-rc1]
|
# kernel_version: [6.1-rc1]
|
||||||
steps:
|
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
|
- name: Download kernel packages
|
||||||
if: steps.check_version.outputs.skip_build == 'False'
|
|
||||||
run: |
|
run: |
|
||||||
KERNEL_URL=https://kernel.ubuntu.com/~kernel-ppa/mainline/
|
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")
|
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}}/$AMD64_DEB
|
||||||
wget -nv ${KERNEL_URL}v${{matrix.kernel_version}}/$ALL_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
|
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
|
- name: install deb packages
|
||||||
if: steps.check_version.outputs.skip_build == 'False'
|
|
||||||
run: sudo dpkg --force-all -i *.deb
|
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
|
- uses: actions/checkout@v2
|
||||||
if: steps.check_version.outputs.skip_build == 'False'
|
- name: build kernel ${{ matrix.kernel_version }}
|
||||||
- name: build kernel ${{ matrix.kernel_version }} - GCC ${{ matrix.gcc_version }}
|
|
||||||
if: steps.check_version.outputs.skip_build == 'False'
|
|
||||||
run: make KVER=$KVER CC=cc
|
run: make KVER=$KVER CC=cc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user