Skip to content

Github Actions CI Changes #1136

Github Actions CI Changes

Github Actions CI Changes #1136

Workflow file for this run

name: Code CI
on:
# Only run on changes to branches with open PRs
pull_request:
types: [opened, edited, synchronize]
# Run after PR merged, on implicit push, and on tag pushes
push:
tags:
- '*'
branches: [master]
jobs:
# Make Boot files
make_boot:
uses: ./.github/workflows/_make_boot.yml
# Make zpkg for FPGA apps
make_zpkg:
uses: ./.github/workflows/_make_zpkg.yml
# Optional revert on failed push workflow
undo:
needs: [ make_boot, make_zpkg, test_hdl ]
uses: ./.github/workflows/_undo.yml
# Release on push to tag
release:
needs: [ make_boot, make_zpkg, test_hdl, test_matrix, test_python_autogen ]
uses: ./.github/workflows/_release.yml
# Generate job matrix to evenly split tests
test_matrix:
uses: ./.github/workflows/_test_matrix.yml
# python and autogen tests
test_python_autogen:
uses: ./.github/workflows/_test_python_autogen.yml
# hdl tests
test_hdl:
needs: [test_matrix, test_python_autogen]
uses: ./.github/workflows/_test_hdl.yml
with:
matrix: ${{needs.test_matrix.outputs.matrix}}