Open supperthomas opened 2 years ago
GitHub Actions 有一些自己的术语。
workflow (工作流程):持续集成一次运行的过程,就是一个 workflow。
job (任务):一个 workflow 由一个或多个 jobs 构成,含义是一次持续集成的运行,可以完成多个任务。
step(步骤):每个 job 由多个 step 构成,一步步完成。
action (动作):每个 step 可以依次执行一个或多个命令(action)。
要看懂action.yml 看下面这个连接比较管用 https://docs.github.com/cn/actions/learn-github-actions/workflow-syntax-for-github-actions#example
github actionCI部署有两种方式
如果想要节省时间:
还有个软件包的问题:
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?
哈哈,有办法了。。
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?
哈哈,有办法了。。 分享一下吧😁
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?
哈哈,有办法了。。 分享一下吧😁
可以先把.config弄好,然后拷贝覆盖进去
Github Action 精华指南 https://zhuanlan.zhihu.com/p/164744104
GitHub Actions 入门教程 https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
travis 源码在这里 https://github.com/armink/UtestRunner , FlashDB 里也有用到 https://github.com/armink/FlashDB/blob/master/.travis.yml
Intro to CI/CD Part 2: Getting Started with GitHub Actions | Digi-Key Electronics https://www.youtube.com/watch?v=8pyqbYDYkRs
github action token权限。
- name: Push to GitHub
uses: EndBug/add-and-commit@v9
with:
message: "🎆 docs: Update new data"
nohup qemu-system-arm -M vexpress-a9 -smp cpus=2 -kernel rtthread.bin -nographic -sd sd.bin > cmd2.out 2>&1 &
通过rtt_ci_env仓库的ci 来push对应的image到dockerhub的不同tag 然后通过rtthread里面的action来调用对应的image。这个其实耗时比较大。
rt-thread : apt-get install tool 需要30秒, 安装gcc需要20秒。 每个bsp都需要这时间。 不过一个bsp搞完差不多也就2分钟时间,还是挺快的。
echo CONFIG_RT_USING_UTESTCASES=y >> $TEST_BSP_ROOT/.config
cat examples/utest/configs/$TEST_CONFIG_FILE >> $TEST_BSP_ROOT/.config
$(nproc)
continue-on-error:
ls bsp/$bsp/Kconfig && scons -C bsp/$bsp --pyconfig-silent pushd bsp/$bsp && pkgs --update && popd
https://github.com/nektos/act action 本地化运行
做个package 没有toolchain
https://github.com/supperthomas/esp-idf-ci-action