-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI update for Cortex-M with Arm Compiler 6 (#2771)
This PR updates the CI for Cortex-M with Arm Compiler 6. It replaces the workflow from: https://github.com/tensorflow/tflite-micro/blob/main/.github/workflows/cortex_m_virtual_hardware.yml that required updating. The new workflow is simplified and can run on Github runners directly. This PR replaces the previous generated PR: #2750 BUG="Fixing CI for Arm Compiler 6"
- Loading branch information
1 parent
aa7b5e0
commit d7d40b3
Showing
5 changed files
with
131 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# 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 / Arm Compiler 6 | ||
on: | ||
schedule: | ||
- cron: '0 4 * * *' | ||
|
||
# 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: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
pip3 install Pillow | ||
pip3 install numpy | ||
- name: Install Arm tools | ||
uses: ARM-software/cmsis-actions/vcpkg@v1 | ||
with: | ||
config: "tensorflow/lite/micro/tools/github/arm/vcpkg-configuration.json" | ||
|
||
- name: Activate Arm tool license | ||
uses: ARM-software/cmsis-actions/armlm@v1 | ||
|
||
- name: Test | ||
run: | | ||
tensorflow/lite/micro/tools/ci_build/test_cortex_m_generic.sh armclang | ||
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@v2 | ||
- name: Install dependencies | ||
run: | | ||
pip3 install Pillow | ||
pip3 install numpy | ||
- name: Install Arm tools | ||
uses: ARM-software/cmsis-actions/vcpkg@v1 | ||
with: | ||
config: "tensorflow/lite/micro/tools/github/arm/vcpkg-configuration.json" | ||
|
||
- name: Activate Arm tool license | ||
uses: ARM-software/cmsis-actions/armlm@v1 | ||
|
||
- name: Test | ||
run: | | ||
tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh armclang | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: my-artifact | ||
path: | | ||
tensorflow/ | ||
gen/ | ||
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 }} | ||
|
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
tensorflow/lite/micro/tools/github/arm/vcpkg-configuration.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"registries": [ | ||
{ | ||
"name": "arm", | ||
"kind": "artifact", | ||
"location": "https://artifacts.tools.arm.com/vcpkg-registry" | ||
} | ||
], | ||
"requires": { | ||
"arm:compilers/arm/armclang": "6.22.0", | ||
"arm:models/arm/avh-fvp": "^11.27.31" | ||
} | ||
} |
32 changes: 0 additions & 32 deletions
32
tensorflow/lite/micro/tools/github/arm_virtual_hardware/cortex_m_corstone_300_avh.yml
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
tensorflow/lite/micro/tools/github/arm_virtual_hardware/cortex_m_generic_avh.yml
This file was deleted.
Oops, something went wrong.