Update build_sdk.yml #16
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: Image build on event | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
root-reserve-mb: 100 | |
swap-size-mb: 200 | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
overprovision-lvm: 'true' | |
- name: Download SDK | |
run: | | |
sudo apt install -y python2 build-essentials | |
wget -q https://fra1.digitaloceanspaces.com/openhd-images/BaseImages/rk356x_linux5.10_rkr8_sdk.repo.tar | |
tar -xvf rk356x_linux5.10_rkr8_sdk.repo.tar | |
.repo/repo/repo sync -l -j1 --fail-fast | |
- name: Add Radxa configuation | |
run: | | |
cd device/rockchip | |
git remote add radxa https://github.com/radxa/device-rockchip.git | |
git fetch radxa | |
git checkout -b rk3566_rk3568-linux-5.10 remotes/radxa/rk3566_rk3568-linux-5.10 | |
- name: Add Radxa kernel | |
run: | | |
cd kernel | |
git remote add radxa https://github.com/radxa/kernel.git | |
git fetch radxa | |
git checkout -b linux-5.10-gen-rkr8-buildroot remotes/radxa/linux-5.10-gen-rkr8-buildroot | |
- name: Compile stock image | |
run: | | |
echo "rockchip_rk3566_radxa_zero_3w_defconfig" | ./build.sh |