Skip to content

Initial build.

Initial build. #47

Workflow file for this run

name: '🔥 Build TFLM'
on:
push:
tags:
- 'v*.*.*'
branches:
- 'main'
paths:
- 'src/**'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'
- '!**.rst'
pull_request:
branches:
- 'main'
paths:
- 'src/**'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'
- '!**.rst'
jobs:
build-tflm:
runs-on: ubuntu-20.04
strategy:
matrix:
target: [cortex-m0plus, cortex-m4+fp, cortex-m7+fp, cortex-m55]
fail-fast: false
steps:
- name: '⏳ Checkout main'
uses: actions/checkout@v4
with:
submodules: false
- name: '⏳ Checkout TFLM'
uses: actions/checkout@v4
with:
submodules: false
path: tflite-micro
repository: tensorflow/tflite-micro
ref: 8c458fc48ee972ea4fc56ddc08849823b9af7ea8
- name: '♻ Caching dependencies'
uses: actions/[email protected]
id: cache
with:
path: ~/cache/gcc
key: 'arm-gnu-toolchain-13.2.rel1'
- name: '🛠 Install toolchain '
if: steps.cache.outputs.cache-hit != 'true'
run: source tools/ci.sh && ci_install_arm_gcc
- name: '🛠 Install dependencies'
run: |
python -m pip install --upgrade pip numpy==1.24 Pillow==10.3
- name: '🏗 Build TFLM'
run: source tools/ci.sh && ci_build_target ${{ matrix.target }}
- name: '⬆ Upload libraries'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: ${{ matrix.target }}
if-no-files-found: error
build-tflm-headers:
runs-on: ubuntu-20.04
steps:
- name: '⏳ Checkout main'
uses: actions/checkout@v4
with:
submodules: false
- name: '⏳ Checkout TFLM'
uses: actions/checkout@v4
with:
submodules: false
path: tflite-micro
repository: tensorflow/tflite-micro
ref: 8c458fc48ee972ea4fc56ddc08849823b9af7ea8
- name: '♻ Caching dependencies'
uses: actions/[email protected]
id: cache
with:
path: ~/cache/gcc
key: 'arm-gnu-toolchain-13.2.rel1'
- name: '🛠 Install toolchain '
if: steps.cache.outputs.cache-hit != 'true'
run: source tools/ci.sh && ci_install_arm_gcc
- name: '🛠 Install dependencies'
run: |
python -m pip install --upgrade pip numpy==1.24 Pillow==10.3
- name: '🏗 Build headers'
run: source tools/ci.sh && ci_build_headers
- name: '⬆ Upload headers'
uses: actions/upload-artifact@v4
with:
name: include
path: include
if-no-files-found: error
push-artifacts:
runs-on: ubuntu-20.04
needs: [build-tflm, build-tflm-headers]
# if: github.event_name == 'push'
permissions:
contents: write
pull-requests: write
steps:
- name: '⏳ Checkout repository'
uses: actions/checkout@v4
with:
submodules: false
- name: '🧹 Remove old headers '
run: |
rm -fr include
- name: '⬇ Download artifacts'
uses: actions/download-artifact@v4
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
base: main
branch: update_tflm
title: Update tflm libraries and headers.
commit-message: Update tflm libraries and headers.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: '🧹 Remove artifacts'
uses: geekyeggo/delete-artifact@v5
with:
name: firmware
name: |

Check failure on line 151 in .github/workflows/tflm.yml

View workflow run for this annotation

GitHub Actions / 🔥 Build TFLM

Invalid workflow file

The workflow is not valid. .github/workflows/tflm.yml (Line: 151, Col: 9): 'name' is already defined
cortex*
include
failOnError: false