-
Notifications
You must be signed in to change notification settings - Fork 17
41 lines (33 loc) · 981 Bytes
/
code.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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, ci_test]
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
# 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}}