From 1b26497b1c3e9e5e3897449048bdd7a303a850f2 Mon Sep 17 00:00:00 2001 From: MichaIng Date: Mon, 6 Jan 2025 16:39:23 +0700 Subject: [PATCH] v9.10 - CI | Armbian: Build own kernel package for Orange Pi 5 Max with package name suffix, to enable onboard WiFi support: https://github.com/MichaIng/DietPi/issues/7338 --- .github/workflows/armbian.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/armbian.yml b/.github/workflows/armbian.yml index 618d1ccbf8..e3fad44e4a 100644 --- a/.github/workflows/armbian.yml +++ b/.github/workflows/armbian.yml @@ -66,6 +66,11 @@ jobs: git fetch origin main git rebase origin/main fi + # Workaround for onboard WiFi on Orange Pi 5 Max + if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ] + then + git cherry-pick origin/orangepi5max || git cherry-pick dietpi/orangepi5max + fi - name: Obtain version suffix run: | cd build @@ -82,6 +87,10 @@ jobs: ;; *) echo 'ERROR: Invalid asset "${{ github.event.inputs.asset }}"'; exit 1;; esac + if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ] + then + package="${package}_orangepi5max" + fi if curl -fO "https://dietpi.com/downloads/binaries/$package.deb" then cur_version=$(dpkg-deb -f "$package.deb" Version) @@ -112,6 +121,10 @@ jobs: for i in * do mv -v "$i" "${i%%_*}.deb" + if [ '${{ github.event.inputs.board }}' = 'orangepi5-max' ] && [ '${{ github.event.inputs.asset }}' = 'kernel' ] + then + mv -v "$i" "${i%.deb}_orangepi5max.deb" + fi i="${i%%_*}.deb" files="$files,$i" urls="$urls,\"https://dietpi.com/downloads/binaries/testing/$i\""