Skip to content

Commit

Permalink
add rk3566
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jan 29, 2024
1 parent 523e96d commit a59d5fc
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 3 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/build_RK3566_debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: build_package_rock5_debian

on:
push:
branches: ["develop"]
paths-ignore:
- '**.md'
- '**.asciidoc'
- '**.adoc'
- '.gitignore'
- 'LICENSE'

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 mpp in CHROOT
run: |
git clone https://github.com/OpenHD/ChrootCompilationTest /opt/ChrootCompilationTest
mkdir -p /opt/ChrootCompilationTest/additionalFiles
git clone https://github.com/OpenHD/mpp /opt/ChrootCompilationTest/additionalFiles/ --recursive
echo $CLOUDSMITH_API_KEY > /opt/ChrootCompilationTest/additionalFiles/cloudsmith_api_key.txt
echo "debian" > /opt/ChrootCompilationTest/additionalFiles/distro.txt
echo "bullseye" > /opt/ChrootCompilationTest/additionalFiles/flavor.txt
echo "rk3566" /opt/ChrootCompilationTest/additionalFiles/board.txt
cd /opt/ChrootCompilationTest/
sudo apt update
sudo bash install_dep.sh
sudo bash build.sh radxa-zero3w $API_KEY debian bullseye
17 changes: 14 additions & 3 deletions build_chroot.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#This file is the install instruction for the CHROOT build
#We're using cloudsmith-cli to upload the file in CHROOT
# This file is the install instruction for the CHROOT build
# We're using cloudsmith-cli to upload the file in CHROOT

sudo apt install -y python3-pip
sudo pip3 install --upgrade cloudsmith-cli
Expand Down Expand Up @@ -29,5 +29,16 @@ ls -a ../../../
API_KEY=$(cat ../../../cloudsmith_api_key.txt)
DISTRO=$(cat ../../../distro.txt)
FLAVOR=$(cat ../../../flavor.txt)
cloudsmith push deb --api-key "$API_KEY" openhd/openhd-2-3-evo/${DISTRO}/${FLAVOR} *.deb || exit 1
BOARD=$(cat ../../../board.txt)

if [ "$BOARD" = "rk3566" ]; then
for file in *.deb; do
mv "$file" "${file%.deb}-rk3566.deb"
done
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
else
for file in *.deb; do
mv "$file" "${file%.deb}-rk3588.deb"
done
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
fi

0 comments on commit a59d5fc

Please sign in to comment.