[英]GitHub Actions jobs sequence
我正在尝试在 GitHub 操作上实现作业序列:结帐并上传 arm-none-eabi-gcc 编译器,下一个构建不同目标的矩阵,下一个创建发布并上传发布资产(矩阵)。
对于结帐,我使用带有 clean false 标志的actions/checkout@v2
来拆分作业strategy:matrix:
当然。 fiam/arm-none-eabi-gcc@v1
- 上传 gcc。
jobs:
preparation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
clean: false
- name: Install python dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r ./tools/requirements.txt
- name: Install arm-none-eabi-gcc
uses: fiam/arm-none-eabi-gcc@v1
with:
release: '9-2019-q4' # The arm-none-eabi-gcc release to use.
build:
needs: preparation
runs-on: ubuntu-latest
strategy:
matrix:
*** build cmds ***
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: actions/create-release@v1
upload:
needs: release
runs-on: ubuntu-latest
strategy:
matrix:
我在构建和上传作业中有两个拆分。
是否可以在 github 动作中创建此序列? 如何禁用结帐后清理以存储上传的编译器?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.