github: Update workflows.

Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
This commit is contained in:
iabdalkader 2025-04-13 09:26:49 +02:00
parent fe7277abda
commit 5c15f7fe69
4 changed files with 33 additions and 21 deletions

View File

@ -13,8 +13,8 @@
"labels": ["imlib"]
},
{
"title": "## 🧬 HAL",
"labels": ["hal"]
"title": "## 🧬 Common",
"labels": ["common"]
},
{
"title": "## 📚 Libraries",
@ -72,7 +72,7 @@
"on_property": "title"
},
{
"pattern": "(^hal)(.+)",
"pattern": "(^common)(.+)",
"method": "replace",
"target": "$1",
"on_property": "title"

View File

@ -44,15 +44,18 @@ jobs:
uses: tj-actions/changed-files@v46
with:
files: |
src/**/*.c
src/**/*.h
!src/hal/**
!src/lib/**
!src/drivers/**
!src/lib/micropython/**
!src/stm32cubeai/**
!src/omv/ports/stm32/uvc/**
!src/omv/ports/stm32/boot/**
**/*.{c,cc,h}
!cubeai/**
!docker/**
!docs/**
!drivers/**
drivers/sensors/*.{c,cc,h}
!lib/**
lib/imlib/*.{c,cc,h}
lib/tflm/*.{c,cc,h}
!scripts/**
!tools/**
!ports/stm32/uvc/**
- name: '📜 Show list of changed files'
run: |

View File

@ -7,21 +7,31 @@ on:
branches:
- 'master'
paths:
- 'src/**'
- '**'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'
- '!**.rst'
- '!**.md'
- '!cubeai**'
- '!docker**'
- '!scripts**'
- '!tools/**'
pull_request:
branches:
- 'master'
paths:
- 'src/**'
- '**'
- '.github/workflows/*.yml'
- '.github/workflows/*.json'
- '!**/README.md'
- '!**.rst'
- '!**.md'
- '!cubeai**'
- '!docker**'
- '!scripts**'
- '!tools/**'
jobs:
build-firmware:

View File

@ -38,8 +38,7 @@ ci_install_gnu_make() {
ci_update_submodules() {
git submodule update --init --depth=1 --no-single-branch
git -C src/lib/micropython/ submodule update --init --depth=1
# (cd src/lib/micropython/ && for remote in `git branch -r | grep -v /HEAD | grep -v master`; do git checkout --track $remote ; done)
git -C lib/micropython/ submodule update --init --depth=1
}
########################################################################################
@ -47,9 +46,9 @@ ci_update_submodules() {
ci_build_target() {
export PATH=${GNU_MAKE_PATH}:${GCC_TOOLCHAIN_PATH}/bin:${PATH}
make -j$(nproc) -C src/lib/micropython/mpy-cross
make -j$(nproc) TARGET=${1} LLVM_PATH=${LLVM_TOOLCHAIN_PATH}/bin -C src
mv src/build/bin ${1}
make -j$(nproc) -C lib/micropython/mpy-cross
make -j$(nproc) TARGET=${1} LLVM_PATH=${LLVM_TOOLCHAIN_PATH}/bin
mv build/bin ${1}
}
########################################################################################
@ -57,8 +56,8 @@ ci_build_target() {
ci_package_firmware_release() {
# Add WiFi firmware blobs
cp -rf src/drivers/cyw4343/firmware firmware/CYW4343
cp -rf src/drivers/winc1500/firmware firmware/WINC1500
cp -rf drivers/cyw4343/firmware firmware/CYW4343
cp -rf drivers/winc1500/firmware firmware/WINC1500
(cd firmware && zip -r ../firmware_${1}.zip *)
}