mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 05:25:03 +00:00
Merge pull request #223 from CGarces/fix_build
Github actions enhancements
This commit is contained in:
commit
722ebf1e6d
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@ -1,6 +1,6 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
fetchKernelData:
|
fetchKernelData:
|
||||||
@ -18,6 +18,7 @@ jobs:
|
|||||||
needs: fetchKernelData
|
needs: fetchKernelData
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
version: ${{fromJson(needs.fetchKernelData.outputs.matrix)}}
|
version: ${{fromJson(needs.fetchKernelData.outputs.matrix)}}
|
||||||
#version: [4.9.248, 4.4.248]
|
#version: [4.9.248, 4.4.248]
|
||||||
@ -31,11 +32,11 @@ jobs:
|
|||||||
KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${VERSION}/ | grep -A8 "Build for amd64\|Test amd64")
|
KERNEL_URL_DETAILS=$(wget --quiet -O - ${KERNEL_URL}v${VERSION}/ | grep -A8 "Build for amd64\|Test amd64")
|
||||||
ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2)
|
ALL_DEB=$(echo "$KERNEL_URL_DETAILS" | grep -m1 'all.deb' | cut -d '"' -f 2)
|
||||||
KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic
|
KVER=$(echo $ALL_DEB | cut -d '_' -f 2 | rev | cut -c14- | rev)-generic
|
||||||
wget ${KERNEL_URL}v${VERSION}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "amd64.deb" | cut -d '"' -f 2)
|
wget -nv ${KERNEL_URL}v${VERSION}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "amd64.deb" | cut -d '"' -f 2)
|
||||||
wget ${KERNEL_URL}v${VERSION}/$ALL_DEB
|
wget -nv ${KERNEL_URL}v${VERSION}/$ALL_DEB
|
||||||
sudo dpkg -i *.deb
|
sudo dpkg --force-all -i *.deb
|
||||||
sudo wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/module.lds.S -O /usr/src/linux-headers-$KVER/scripts/module.lds
|
sudo wget https://raw.githubusercontent.com/torvalds/linux/master/scripts/module.lds.S -O /usr/src/linux-headers-$KVER/scripts/module.lds
|
||||||
sudo sed -i '$ d' /usr/src/linux-headers-$KVER/scripts/module.lds
|
sudo sed -i '$ d' /usr/src/linux-headers-$KVER/scripts/module.lds
|
||||||
echo "KVER=$KVER" >> $GITHUB_ENV
|
echo "KVER=$KVER" >> $GITHUB_ENV
|
||||||
- name: build
|
- name: build
|
||||||
run: make KVER=$KVER
|
run: make KVER=$KVER
|
||||||
|
Loading…
Reference in New Issue
Block a user