add 8812eu_temperature #440
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build_package_rock5_debian | |
on: | |
push: | |
branches: | |
- "2.6-evo" | |
- "dev-release" | |
- "release" | |
- "rapha-dev" | |
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 QOpenHD in CHROOT | |
run: | | |
git clone https://github.com/OpenHD/OpenHD-ChrootCompiler /opt/OpenHD-ChrootCompiler | |
mkdir -p /opt/OpenHD-ChrootCompiler/additionalFiles | |
git clone https://github.com/OpenHD/QOpenHD -b ${{ github.ref_name }} /opt/OpenHD-ChrootCompiler/additionalFiles/ --recursive | |
echo $CLOUDSMITH_API_KEY > /opt/OpenHD-ChrootCompiler/additionalFiles/cloudsmith_api_key.txt | |
echo "standard" > /opt/OpenHD-ChrootCompiler/additionalFiles/custom.txt | |
echo "arm64" > /opt/OpenHD-ChrootCompiler/additionalFiles/arch.txt | |
echo "debian" > /opt/OpenHD-ChrootCompiler/additionalFiles/distro.txt | |
echo "bullseye" > /opt/OpenHD-ChrootCompiler/additionalFiles/flavor.txt | |
echo "${{ github.ref_name }}" > /opt/OpenHD-ChrootCompiler/additionalFiles/repo.txt | |
cd /opt/OpenHD-ChrootCompiler/ | |
sudo apt update | |
sudo bash install_dep.sh | |
sudo bash build.sh rock5b $API_KEY debian bullseye | |
- name: debug | |
run: | |
cp -r /opt/OpenHD-ChrootCompiler/out/* . | |
- name: Compose release filename | |
run: echo "artifact_name=QOpenHD-${{ env.DT }}" >> $GITHUB_ENV | |
- name: Upload to Github | |
uses: 'actions/upload-artifact@v4' | |
with: | |
name: "QOpenHD-${{ env.DT }}" | |
path: | | |
*.deb | |
- name: Push | |
if: github.ref_name == 'release' || github.ref_name == 'dev-release' | |
run: | | |
ls -a | |
sudo apt install -y python3-pip | |
pip install cloudsmith-api | |
pip install cloudsmith-cli | |
cloudsmith push deb -k ${{ secrets.CLOUDSMITH_API_KEY }} openhd/${{ github.ref_name }}/debian/bullseye qopenhd_rk3588_*.deb | |
cloudsmith push deb -k ${{ secrets.CLOUDSMITH_API_KEY }} openhd/${{ github.ref_name }}/debian/bullseye qopenhd_rk3588a_*.deb | |
cloudsmith push deb -k ${{ secrets.CLOUDSMITH_API_KEY }} openhd/${{ github.ref_name }}/debian/bullseye qopenhd_rk3566_*.deb | |