-
Notifications
You must be signed in to change notification settings - Fork 12
Update AlifSemiconductors Pack Version #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
329c9fa
164472f
4642577
bfcecf6
299fccf
d9b4e78
ba22daa
5c1d7d2
11d2a99
6cc69fb
51bdae6
2bc4baa
b1e26a3
10d0f36
ee79183
90f4597
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Build ML examples | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
schedule: | ||
- cron: '30 22 28 * 0' | ||
|
||
jobs: | ||
build-target: | ||
name: Build target | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
context: [object-detection.Debug+Alif-E7-M55-HP, object-detection.Debug+AVH-SSE-300-U55, kws.Debug+Alif-E7-M55-HE, kws.Debug+AVH-SSE-310-U65, kws.Debug+FRDM-K64F, kws.Debug+STM32F746-DISCO] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason for not building the release contexts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No particular reason. Should I add both release and debug contexts? |
||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ARM_UBL_ACTIVATION_CODE: ${{secrets.ARM_UBL_ACTIVATION_CODE}} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup vcpkg environment | ||
uses: JonatanAntoni/actions/vcpkg@main | ||
with: | ||
config: vcpkg-configuration.json | ||
|
||
- name: Activate Arm tool license | ||
run: | | ||
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then | ||
armlm activate --code ${{ env.ARM_UBL_ACTIVATION_CODE }} | ||
else | ||
armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0 | ||
fi | ||
|
||
- name: Build target | ||
run: cbuild mlek.csolution.yml --update-rte --packs --schema --context ${{ matrix.context }} | ||
|
||
- name: Deactivate Arm tool license | ||
if: always() | ||
run: | | ||
if [[ -n "${{ env.ARM_UBL_ACTIVATION_CODE }}" ]]; then | ||
armlm deactivate --code ${{ env.ARM_UBL_ACTIVATION_CODE }} | ||
else | ||
armlm deactivate --product KEMDK-COM0 | ||
fi | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
extern "C" { | ||
#endif // #if defined(__cplusplus) | ||
|
||
#include "gpio.h" | ||
#include "../src/gpio.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks pretty unusual. Header files placed into the src folder are typically considered "private" while ones in include folder represent the "public interface". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One of the type definitions required in this file was not present in the pack's |
||
|
||
#if defined(__cplusplus) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
#include "log_macros.h" | ||
|
||
#include <inttypes.h> | ||
#include "gpio.h" | ||
|
||
namespace arm { | ||
namespace app { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would only run by schedule if day 28 of a month happens to be a Sunday.