Skip to content

Commit

Permalink
testing bu noble support
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed May 8, 2024
1 parent 004ba86 commit 9571cc7
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_for_x86-noble.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build on x86 noble

on: [push]


jobs:
build:
#runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
overprovision-lvm: 'true'
- name: test
run: |
echo "DT=$(date +'%Y-%m-%d_%H%M')" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Building OpenHD in CHROOT
run: |
git clone https://github.com/OpenHD/ChrootCompilationTest /opt/ChrootCompilationTest
mkdir -p /opt/ChrootCompilationTest/additionalFiles
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 "AMD64" > /opt/ChrootCompilationTest/additionalFiles/arch.txt
echo "ubuntu" > /opt/ChrootCompilationTest/additionalFiles/distro.txt
echo "noble" > /opt/ChrootCompilationTest/additionalFiles/flavor.txt
echo "${{ github.ref_name }}" > /opt/ChrootCompilationTest/additionalFiles/repo.txt
cd /opt/ChrootCompilationTest/
sudo apt update
sudo bash install_dep.sh
sudo bash ./build.sh x86-minimal $API_KEY ubuntu noble
20 changes: 20 additions & 0 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,26 @@ if [[ -e /etc/os-release && $(grep -c "Raspbian" /etc/os-release) -gt 0 ]]; then
echo "Pushing the package to OpenHD 2.5 repository"
ls -a
cloudsmith push deb --api-key "$API_KEY" openhd/release/raspbian/bullseye 88X2bu-rpi.deb || exit 1
elif [[ "$(lsb_release -cs)" == "noble" ]]; then
echo "building for ubuntu noble minimal"
sudo apt update
sudo apt install -y build-essential flex bc bison dkms
sudo apt install -y python3-pip
sudo apt remove -y python3-urllib3
sudo pip install cloudsmith-api --break-system-packages
sudo pip install cloudsmith-cli --break-system-packages
make KSRC=/usr/src/linux-headers-6.8.0-31-generic O="" modules
mkdir -p package/lib/modules/6.8.0-31-generic/kernel/drivers/net/wireless/
cp *.ko package/lib/modules/6.8.0-31-generic/kernel/drivers/net/wireless/
ls -a
fpm -a amd64 -s dir -t deb -n rtl88x2bu-x86 -v 2.5-evo-$(date '+%m%d%H%M') -C package -p rtl88x2bu-x86.deb --before-install before-install.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"
cloudsmith push deb --api-key "$API_KEY" openhd/release/ubuntu/noble rtl88x2bu-x86.deb || exit 1
echo "---------------"
echo "_____________________________________________"
else
sudo apt update
sudo apt install -y build-essential flex bc bison dkms
Expand Down

0 comments on commit 9571cc7

Please sign in to comment.