From 742f7f53296b32bd2265c428128e1213700a0363 Mon Sep 17 00:00:00 2001 From: Carlos Date: Sat, 6 Feb 2021 12:47:57 +0000 Subject: [PATCH] Set fail-fast to false to avoid cancel all builds due temporal errors on kernel versions Removed verbose to wget commands Forced dpkg command to allow compilation if .deb installations fails due dependencies not needed for build. --- .github/workflows/build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 731f6d9..332e2bb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: Build -on: [push, pull_request] +on: [pull_request] jobs: fetchKernelData: @@ -18,6 +18,7 @@ jobs: needs: fetchKernelData runs-on: ubuntu-latest strategy: + fail-fast: false matrix: version: ${{fromJson(needs.fetchKernelData.outputs.matrix)}} #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") 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 - wget ${KERNEL_URL}v${VERSION}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "amd64.deb" | cut -d '"' -f 2) - wget ${KERNEL_URL}v${VERSION}/$ALL_DEB - sudo dpkg -i *.deb + wget -nv ${KERNEL_URL}v${VERSION}/$(echo "$KERNEL_URL_DETAILS" | grep -m1 "amd64.deb" | cut -d '"' -f 2) + wget -nv ${KERNEL_URL}v${VERSION}/$ALL_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 sed -i '$ d' /usr/src/linux-headers-$KVER/scripts/module.lds echo "KVER=$KVER" >> $GITHUB_ENV - name: build - run: make KVER=$KVER + run: make KVER=$KVER