省流:不行
测试流程:
(1)新建项目https://github.com/LV36/RZ-G2UL/
(2)新建文件.github/workflows/RZ-G2UL-images.yml,文本框中输入如下代码:
name: RZ-G2UL-images 云编译
on:
repository_dispatch:
workflow_dispatch:
release:
types: [published]
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@master
- name: Initialization environment
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update && sudo apt-get full-upgrade -y && sudo apt-get upgrade -y && sudo apt-get autoremove -y
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python2 python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping libsdl1.2-dev xterm p7zip-full libyaml-dev python3-git python3-jinja2 libegl1-mesa python3-subunit mesa-common-dev
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
- name: Clone source code
run: |
cd ~
git clone git:
git clone git:
git clone https:
git clone http:
git clone https:
git clone https:
git clone https:
cd ~/poky
git checkout dunfell-23.0.14
git cherry-pick 9e444
cd ~/meta-openembedded
git checkout -b tmp ec978232732edbdd875ac367b5a9c04b881f2e19
cd ~/meta-gplv2
git checkout -b tmp 60b251c25ba87e946a0ca4cdc8d17b1cb09292ac
cd ~/meta-qt5
git checkout -b tmp c1b0c9f546289b1592d7a895640de103723a0305
cd ~/meta-renesas
git checkout -b tmp 459cfc5ba7fee40f8aa0a070966e373377668014
cd ~/meta-virtualization
git checkout -b tmp c5f61e547b90aa8058cf816f00902afed9c96f72
cd ~/meta-renesas/docs/template/conf/smarc-rzg2ul/
cp ~/RZ-G2UL/local.conf ./local.conf
- name: Build Firmware
run: |
cd ~
source poky/oe-init-build-env
cp ~/meta-renesas/docs/template/conf/smarc-rzg2ul/*.conf ./conf/.
cd ~/build
bitbake core-image-bsp
cd ~
sudo tar -czvf RZ-G2UL-images.tar.gz ~/build/tmp/deploy/images/smarc-rzg2ul/*
- name : Upload packages
uses: actions/upload-artifact@master
if: always()
with:
name: RZ-G2UL-images
path: ~/build/tmp/deploy/images/smarc-rzg2ul/
- name: Upload firmware to release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "RZ-G2UL-images"
files: ~/RZ-G2UL-images.tar.gz
(3)新建文件local.conf,参照https://github.com/renesas-rz/meta-renesas/releases/tag/BSP-3.0.0-update2中/meta-renesas/docs/template/conf/smarc-rzg2ul/local.conf和参考文档[1]Page 7 of 33自定义功能开启情况
(4)Actions页面Run workflow进行在线编译
3小时左右后编译失败
(5)查看相关文档后发现编译至少需要100G硬盘空间,而Github Action可用空间为30G左右,可用空间不足,白嫖失败。
参考文档:
[1]https://www.renesas.cn/cn/zh/document/mas/rzg2-group-yocto-recipe-start-guide-vlp-v300?r
[2]https://www.renesas.cn/us/en/document/rln/release-note-rzg-verified-linux-package-v300-update2#
|