cortex_m.yml 1.4 KB
Newer Older
1 2 3 4 5 6
# 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/

A
Advait Jain 已提交
7
name: Cortex-M
8 9 10 11

# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
on:
  schedule:
A
Advait Jain 已提交
12 13 14 15
    - cron: '0 4 * * *'

  # Allow manually triggering of the workflow.
  workflow_dispatch: {}
16 17

jobs:
18
  cortex_m_generic:
19
    runs-on: ubuntu-latest
20 21 22 23 24

    if: |
      github.event_name == 'workflow_dispatch' ||
      (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro')

25
    name: Cortex-M Generic
26 27
    steps:
      - uses: actions/checkout@v2
28 29 30
      - name: Install dependencies
        run: |
          pip3 install Pillow
31
          pip3 install Wave
32 33 34
      - name: Test
        run: |
          tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh
35 36 37

  cortex_m_corstone_300:
    runs-on: ubuntu-latest
38 39 40 41 42

    if: |
      github.event_name == 'workflow_dispatch' ||
      (github.event_name == 'schedule' && github.repository == 'tensorflow/tflite-micro')

43 44 45
    name: Cortex-M Corstone 300 (FVP)
    steps:
      - uses: actions/checkout@v2
46 47 48
      - name: Install dependencies
        run: |
          pip3 install Pillow
49
          pip3 install Wave
50 51
      - name: Test
        run: |
A
Advait Jain 已提交
52
          tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh