-
Notifications
You must be signed in to change notification settings - Fork 836
97 lines (81 loc) · 2.51 KB
/
cortex_m.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# YAML schema for GitHub Actions:
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
#
# Helpful YAML parser to clarify YAML syntax:
# https://yaml-online-parser.appspot.com/
name: Cortex-M
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
on:
# Allow manually triggering of the workflow.
workflow_dispatch: {}
pull_request_target:
types:
- closed
- labeled
workflow_call:
inputs:
trigger-sha:
required: true
type: string
secrets:
tflm-bot-token:
required: true
jobs:
cortex_m_generic:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'schedule' &&
github.repository == 'tensorflow/tflite-micro') ||
(github.event.action == 'labeled' &&
github.event.label.name == 'ci:run_full')
name: Cortex-M Generic
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
with:
ref: ${{ inputs.trigger-sha }}
- name: Install dependencies
run: |
pip3 install Pillow
pip3 install numpy
- name: Test
run: |
tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh
cortex_m_corstone_300:
runs-on: ubuntu-latest
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'schedule' &&
github.repository == 'tensorflow/tflite-micro') ||
(github.event.action == 'labeled' &&
github.event.label.name == 'ci:run_full')
name: Cortex-M Corstone 300 (FVP)
steps:
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/checkout@v4
with:
ref: ${{ inputs.trigger-sha }}
- name: Install dependencies
run: |
pip3 install Pillow
pip3 install numpy
- name: Test
run: |
tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh
issue-on-error:
needs: [cortex_m_generic, cortex_m_corstone_300]
if: ${{ always() && contains(needs.*.result, 'failure') }}
uses: ./.github/workflows/issue_on_error.yml
with:
repo: ${{ github.repository }}
workflow: ${{ github.workflow }}
run_id: ${{ github.run_id }}
run_number: ${{ github.run_number }}
flag_label: ci:bot_issue
secrets:
token: ${{ secrets.GITHUB_TOKEN }}