Update build_chroot.sh #31
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: ["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 |