Skip to content

Commit 547207d

Browse files
iabdalkaderdpgeorge
authored andcommitted
github/workflows: Add Alif port to CI.
Signed-off-by: iabdalkader <[email protected]>
1 parent 704d2f2 commit 547207d

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/ports_alif.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: alif port
2+
3+
on:
4+
push:
5+
pull_request:
6+
paths:
7+
- '.github/workflows/*.yml'
8+
- 'tools/**'
9+
- 'py/**'
10+
- 'extmod/**'
11+
- 'shared/**'
12+
- 'lib/**'
13+
- 'drivers/**'
14+
- 'ports/alif/**'
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
build_alif:
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
ci_func: # names are functions in ci.sh
26+
- alif_ae3_build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Install packages
31+
run: source tools/ci.sh && ci_alif_setup
32+
- name: Build ci_${{matrix.ci_func }}
33+
run: source tools/ci.sh && ci_${{ matrix.ci_func }}

tools/ci.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,3 +871,18 @@ function ci_zephyr_run_tests {
871871
# - inf_nan_arith fails pow(-1, nan) test
872872
(cd tests && ./run-tests.py -t execpty:"qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -monitor null -serial pty -kernel ../ports/zephyr/build/zephyr/zephyr.elf" -d basics float --exclude inf_nan_arith)
873873
}
874+
875+
########################################################################################
876+
# ports/alif
877+
878+
function ci_alif_setup {
879+
ci_gcc_arm_setup
880+
}
881+
882+
function ci_alif_ae3_build {
883+
make ${MAKEOPTS} -C mpy-cross
884+
make ${MAKEOPTS} -C ports/alif BOARD=OPENMV_AE3 MCU_CORE=M55_HP submodules
885+
make ${MAKEOPTS} -C ports/alif BOARD=OPENMV_AE3 MCU_CORE=M55_HE submodules
886+
make ${MAKEOPTS} -C ports/alif BOARD=OPENMV_AE3 MCU_CORE=M55_DUAL
887+
make ${MAKEOPTS} -C ports/alif BOARD=ALIF_ENSEMBLE MCU_CORE=M55_DUAL
888+
}

0 commit comments

Comments
 (0)