diff --git a/.github/workflows/build_for_x20.yml b/.github/workflows/build_for_x20.yml index 9224be87..262f9b19 100644 --- a/.github/workflows/build_for_x20.yml +++ b/.github/workflows/build_for_x20.yml @@ -1,4 +1,4 @@ -name: build on x86 lunar +name: build on x20 on: [push] diff --git a/build_chroot.sh b/build_chroot.sh index 40b09c20..45c42fd8 100644 --- a/build_chroot.sh +++ b/build_chroot.sh @@ -26,12 +26,27 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then echo "_____________________________________________" ls -a /usr/src/ elif [[ -e /etc/os-release && $(grep -c "Armbian" /etc/os-release) -gt 0 ]]; then + sudo pip3 install --upgrade cloudsmith-cli echo "building for the x20" sudo apt update - sudo apt install -y build-essential flex bc bison dkms linux-headers-5.8.0-29-generic + sudo apt install -y build-essential flex bc bison dkms git + wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-hwe-5.8-headers-5.8.0-29_5.8.0-29.31~20.04.1_all.deb + dpkg -i *.deb + rm -Rf *.deb + wget https://sby.mirror.bignet.id/ubuntu-ports/pool/main/l/linux-hwe-5.8/linux-headers-5.8.0-29-generic_5.8.0-29.31~20.04.1_armhf.deb + dpkg -i *.deb echo "---------------" echo "_____________________________________________" - ls -a /usr/src/ + make KSRC=/usr/src/linux-headers-5.8.0-29-generic O="" modules + mkdir -p package/lib/modules/5.8.0/kernel/drivers/net/wireless/ + cp *.ko package/lib/modules/5.8.0/kernel/drivers/net/wireless/ + ls -a + fpm -a armhf -s dir -t deb -n rtl8812au-x20 -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl8812au-x20.deb --before-install before-install.sh --after-install after-install.sh +echo "push to cloudsmith" +git describe --exact-match HEAD >/dev/null 2>&1 +echo "Pushing the package to OpenHD 2.5 repository" +ls -a +cloudsmith push deb --api-key "$API_KEY" openhd/release/debian/bullseye rtl8812au-x20.deb || exit 1 else sudo apt update