Skip to content

Commit

Permalink
[ci] Add STM32U5 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Mar 13, 2023
1 parent 88683e4 commit 7428f7c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/compile-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,32 @@ jobs:
name: stm32l5-compile-all
path: test/all/log

stm32u5-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
container:
image: ghcr.io/modm-ext/modm-build-cortex-m:2023-01-08
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Fix Git permission/ownership problem
run: |
git config --global --add safe.directory /__w/modm/modm
- name: Update lbuild
run: |
pip3 install --upgrade --upgrade-strategy=eager modm
- name: Compile HAL for all STM32U5
run: |
(cd test/all && python3 run_all.py stm32u5 --quick-remaining)
- name: Upload log artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: stm32u5-compile-all
path: test/all/log

stm32g0-compile-all:
if: github.event.label.name == 'ci:hal'
runs-on: ubuntu-22.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ jobs:
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py nucleo_l552ze-q)
- name: Examples STM32U5 Series
if: always()
run: |
(cd examples && ../tools/scripts/examples_compile.py nucleo_u575zi-q)
- name: Examples STM32G4 Series
if: always()
run: |
Expand Down
6 changes: 6 additions & 0 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ run-nucleo-l552ze-q:
$(call run-test,nucleo-l552ze-q,size)


compile-nucleo-u575zi-q:
$(call compile-test,nucleo-u575zi-q,size)
run-nucleo-u575zi-q:
$(call run-test,nucleo-u575zi-q,size)


compile-al-avreb-can:
$(call compile-test,al-avreb-can,size)
run-al-avreb-can:
Expand Down
13 changes: 13 additions & 0 deletions test/config/nucleo-u575zi-q.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version='1.0' encoding='UTF-8'?>
<library>
<extends>modm:nucleo-u575zi-q</extends>
<options>
<option name="modm:build:build.path">../../build/generated-unittest/nucleo-u575zi-q/</option>
<option name="modm:build:unittest.source">../../build/generated-unittest/nucleo-u575zi-q/modm-test</option>
<option name="modm:platform:exti:with_handlers">false</option>
</options>
<modules>
<module>modm:platform:heap</module>
<module>modm-test:test:**</module>
</modules>
</library>

0 comments on commit 7428f7c

Please sign in to comment.