From b39d8067e39fdf8cd8aaad251055459e50e6dfd1 Mon Sep 17 00:00:00 2001 From: Advait Jain Date: Thu, 22 Apr 2021 23:49:48 +0000 Subject: [PATCH] Adding separate workflows for the Arduino and Cortex-M. (#19) Running these with each PR is not required and additionally results in the per-PR checks taking longer. As a result, we will run these checks at a scheduled time (currently once a day) and post a build badge for these workflows. --- .github/workflows/arduino.yml | 20 ++++++++++++++++++++ .github/workflows/{main.yml => ci.yaml} | 22 +++++++++------------- .github/workflows/cortex_m.yml | 23 +++++++++++++++++++++++ 3 files changed, 52 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/arduino.yml rename .github/workflows/{main.yml => ci.yaml} (84%) create mode 100644 .github/workflows/cortex_m.yml diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml new file mode 100644 index 00000000..0467659b --- /dev/null +++ b/.github/workflows/arduino.yml @@ -0,0 +1,20 @@ +# 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/ + +# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule +on: + schedule: + - cron: '0 6 * * *' + +jobs: + arduino: + runs-on: ubuntu-latest + name: Arduino Continuous Builds + steps: + - uses: actions/checkout@v2 + - name: Test + run: | + tensorflow/lite/micro/tools/ci_build/test_arduino.sh diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yaml similarity index 84% rename from .github/workflows/main.yml rename to .github/workflows/ci.yaml index b58a74b0..c512559a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,12 @@ +# 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/ +# +# +# This file contains the workflows that are run prior to merging a pull request. + name: CI on: @@ -5,16 +14,6 @@ on: types: [labeled] jobs: - arduino: - runs-on: ubuntu-latest - if: contains(github.event.pull_request.labels.*.name, 'ci:run') - name: Arduino - steps: - - uses: actions/checkout@v2 - - name: Test - run: | - tensorflow/lite/micro/tools/ci_build/test_arduino.sh - bazel_tests: runs-on: ubuntu-latest if: contains(github.event.pull_request.labels.*.name, 'ci:run') @@ -37,9 +36,6 @@ jobs: - name: Test run: | tensorflow/lite/micro/tools/ci_build/test_bluepill.sh - tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh - tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh - tensorflow/lite/micro/tools/ci_build/test_sparkfun.sh tensorflow/lite/micro/tools/ci_build/test_stm32f4.sh check_code_style: diff --git a/.github/workflows/cortex_m.yml b/.github/workflows/cortex_m.yml new file mode 100644 index 00000000..a6e4a55f --- /dev/null +++ b/.github/workflows/cortex_m.yml @@ -0,0 +1,23 @@ +# 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/ + + +# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule +on: + schedule: + - cron: '0 6 * * *' + +jobs: + cortex_m_daily: + runs-on: ubuntu-latest + name: Cortex-M Continuous Builds + steps: + - uses: actions/checkout@v2 + - name: Test + run: | + tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh + tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh + tensorflow/lite/micro/tools/ci_build/test_sparkfun.sh -- GitLab