GitHub 动作作业序列

GitHub Actions jobs sequence

我正在尝试在 GitHub 操作上执行一系列作业:签出并上传 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 个操作中创建此序列? 如何禁用 Post 结帐清理以存储上传的编译器?

作业间共享文件只有两种方式:

  1. Cache
  2. Artifacts