Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 27, 2024
1 parent 0c66215 commit a29b2b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_for_pi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: |
git clone https://github.com/OpenHD/ChrootCompilationTest /opt/ChrootCompilationTest
mkdir -p /opt/ChrootCompilationTest/additionalFiles
git clone https://github.com/OpenHD/rtl8812au -b ${{ github.ref_name }} /opt/ChrootCompilationTest/additionalFiles/ --recursive
git clone https://github.com/OpenHD/rtl88x2bu -b ${{ github.ref_name }} /opt/ChrootCompilationTest/additionalFiles/ --recursive
echo $CLOUDSMITH_API_KEY > /opt/ChrootCompilationTest/additionalFiles/cloudsmith_api_key.txt
echo "armhf" > /opt/ChrootCompilationTest/additionalFiles/arch.txt
echo "raspbian" > /opt/ChrootCompilationTest/additionalFiles/distro.txt
Expand Down
6 changes: 3 additions & 3 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
echo "building for the raspberry pi"
sudo apt update
sudo apt install -y build-essential flex bc bison dkms raspberrypi-kernel-headers
echo "___________________BUILDING-DRIVER______PI4_____________"
echo "___________________BUILDING-DRIVER___________________"
make KSRC=/usr/src/linux-headers-6.1.21-v7l+ O="" modules
mkdir -p package/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/6.1.21-v7l+/kernel/drivers/net/wireless/
Expand All @@ -32,13 +32,13 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
make KSRC=/usr/src/linux-headers-6.1.21-v7+ O="" modules
mkdir -p package/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/6.1.21-v7+/kernel/drivers/net/wireless/
fpm -a amd64 -s dir -t deb -n 88X2bu.ko-rpi -v 2.5-evo-$(date '+%m%d%H%M') -C package -p 88X2bu.ko-rpi.deb --before-install before-install-pi.sh --after-install after-install.sh
fpm -a armhf -s dir -t deb -n 88X2bu-rpi -v 2.5-evo-$(date '+%m%d%H%M') -C package -p 88X2bu-rpi.deb --before-install before-install-pi.sh --after-install after-install.sh
echo "copied deb file"
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/raspbian/bullseye 88X2bu.ko-rpi.deb || exit 1
cloudsmith push deb --api-key "$API_KEY" openhd/release/raspbian/bullseye 88X2bu-rpi.deb || exit 1
else
sudo apt update
sudo apt install -y build-essential flex bc bison dkms
Expand Down

0 comments on commit a29b2b8

Please sign in to comment.