Initial build. #11
Workflow file for this run
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
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-m7+fp] | ||
fail-fast: false | ||
steps: | ||
- name: '⏳ Checkout repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
- name: '🧱 Update submodules' | ||
run: source tools/ci.sh && ci_update_submodules | ||
- name: '♻ Caching dependencies' | ||
uses: actions/cache@v4.0.2 | ||
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 artifacts' | ||
# if: github.event_name != 'pull_request' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.target }} | ||
path: ${{ ~/matrix.target }} | ||
Check failure on line 65 in .github/workflows/tflm.yml GitHub Actions / 🔥 Build TFLMInvalid workflow file
|
||
if-no-files-found: error | ||
commit-artifacts: | ||
needs: build-tflm | ||
runs-on: ubuntu-20.04 | ||
# if: github.event_name == 'push' | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: '⏳ Checkout repository' | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
- name: '🤌 Download artifacts' | ||
uses: actions/download-artifact@v4 | ||
- name: Commit build artifacts | ||
run: | | ||
git add . | ||
git commit -m "Add build artifacts" | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
commit-message: Add build artifacts | ||
branch: build-artifacts-branch | ||
title: Add build artifacts | ||
body: This PR adds the build artifacts | ||
base: main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |