[github][action] 学习action
https://github.com/supperthomas/esp-idf-ci-action
官方资料
- 关于持续集成:https://docs.github.com/cn/actions/automating-builds-and-tests/about-continuous-integration
- GitHub Actions 快速入门:https://docs.github.com/cn/actions/quickstart
- 关于 GitHub 托管的运行器:https://docs.github.com/cn/actions/using-github-hosted-runners/about-github-hosted-runners

https://blog.csdn.net/alex_yangchuansheng/article/details/108313625
创建 Docker 容器操作 https://docs.github.com/cn/actions/creating-actions/creating-a-docker-container-action

ubuntu 原装软件 https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
GitHub Actions 有一些自己的术语。
workflow (工作流程):持续集成一次运行的过程,就是一个 workflow。
job (任务):一个 workflow 由一个或多个 jobs 构成,含义是一次持续集成的运行,可以完成多个任务。
step(步骤):每个 job 由多个 step 构成,一步步完成。
action (动作):每个 step 可以依次执行一个或多个命令(action)。
https://docs.github.com/cn/actions/learn-github-actions/understanding-github-actions


yml 语法 https://docs.github.com/cn/actions/learn-github-actions/understanding-github-actions

要看懂action.yml 看下面这个连接比较管用 https://docs.github.com/cn/actions/learn-github-actions/workflow-syntax-for-github-actions#example

所有的参考 https://github.com/actions/checkout https://github.com/actions
github actionCI部署有两种方式
- 直接写action.yml(类似于dockerfile) 可复用性不是很强
- 直接写Dockerfile 做一个action然后调用 这个可复用性强,缺点是整合起来比较慢一些
- 直接调dockerhub中的image 这个github用起来比较方便,放到dockerhub中管理,缺点需要下载最新的github整合,也要写action.yml
如果想要节省时间:
- 使用dockerhub中的直接使用,然后进行github下载代码,然后根据toolchain进行编译
还有个软件包的问题:
- menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?
哈哈,有办法了。。
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?哈哈,有办法了。。 分享一下吧😁
还有个软件包的问题:
1. menuconfig需要 如何能用命令行选择软件包。这个问题比较难解决?哈哈,有办法了。。 分享一下吧😁
可以先把.config弄好,然后拷贝覆盖进去
https://club.rt-thread.org/ask/article/9683302d4d44f637.html
Github Action 精华指南 https://zhuanlan.zhihu.com/p/164744104
GitHub Actions 入门教程 https://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
https://github.com/xqyjlj/xqyjlj
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 &
github action 缓存机制 https://github.com/a1012112796/rtt_ci_env https://github.com/a1012112796/rt-thread/blob/zzc/dev/ci_simple/.github/workflows/action.yml https://cloud.tencent.com/developer/article/1695206
通过rtt_ci_env仓库的ci 来push对应的image到dockerhub的不同tag 然后通过rtthread里面的action来调用对应的image。这个其实耗时比较大。