我正在尝试在 GitHub Actions 上实现一系列作业:结帐和上传 arm-none-eabi-gcc 编译器,下一个构建不同目标的矩阵,下一个创建发布和上传发布资产(矩阵)。
对于结帐,我使用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 操作中创建此序列?如何禁用结帐后清理以存储上传的编译器?