Skip to content

Commit 911d4a9

Browse files
committed
Add support for nRF51, nRF52, nRF53
2 parents 08a6a20 + 667b7e1 commit 911d4a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+5704
-81
lines changed

.github/workflows/compile-all.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,32 @@ jobs:
113113
name: samx7-compile-all
114114
path: test/all/log
115115

116+
nrf-compile-all:
117+
if: github.event.label.name == 'ci:hal'
118+
runs-on: ubuntu-24.04
119+
container:
120+
image: ghcr.io/modm-ext/modm-build-cortex-m:2025-05-18
121+
steps:
122+
- name: Check out repository
123+
uses: actions/checkout@v4
124+
with:
125+
submodules: 'recursive'
126+
- name: Fix Git permission/ownership problem
127+
run: |
128+
git config --global --add safe.directory /__w/modm/modm
129+
- name: Update lbuild
130+
run: |
131+
pip3 install --upgrade --upgrade-strategy=eager --break-system-packages modm
132+
- name: Compile HAL for all nRF5x
133+
run: |
134+
(cd test/all && python3 run_all.py nrf --quick-remaining)
135+
- name: Upload log artifacts
136+
if: always()
137+
uses: actions/upload-artifact@v4
138+
with:
139+
name: nrf5x-compile-all
140+
path: test/all/log
141+
116142
stm32c0-compile-all:
117143
if: github.event.label.name == 'ci:hal'
118144
runs-on: ubuntu-24.04

.github/workflows/linux.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ jobs:
117117
if: always()
118118
run: |
119119
(cd examples && ../tools/scripts/examples_compile.py feather_rp2040 rp_pico thingplus_rp2040)
120+
- name: Examples NRF5 Series
121+
if: always()
122+
run: |
123+
(cd examples && ../tools/scripts/examples_compile.py nrf51422-dk nrf52840-dk nrf5340-dk)
120124
- name: Execute Python Scripts
121125
if: always()
122126
run: |
@@ -320,7 +324,7 @@ jobs:
320324
- name: Quick compile HAL for Cortex-M Part 1
321325
if: always()
322326
run: |
323-
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 0)
327+
(cd test/all && python3 run_all.py stm32 sam rp nrf --quick --split 4 --part 0)
324328
- name: Upload log artifacts
325329
uses: actions/upload-artifact@v4
326330
with:
@@ -345,7 +349,7 @@ jobs:
345349
- name: Quick compile HAL for Cortex-M Part 2
346350
if: always()
347351
run: |
348-
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 1)
352+
(cd test/all && python3 run_all.py stm32 sam rp nrf --quick --split 4 --part 1)
349353
- name: Upload log artifacts
350354
uses: actions/upload-artifact@v4
351355
with:
@@ -370,7 +374,7 @@ jobs:
370374
- name: Quick compile HAL for Cortex-M Part 3
371375
if: always()
372376
run: |
373-
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 2)
377+
(cd test/all && python3 run_all.py stm32 sam rp nrf --quick --split 4 --part 2)
374378
- name: Upload log artifacts
375379
uses: actions/upload-artifact@v4
376380
with:
@@ -395,7 +399,7 @@ jobs:
395399
- name: Quick compile HAL for Cortex-M Part 4
396400
if: always()
397401
run: |
398-
(cd test/all && python3 run_all.py stm32 sam rp --quick --split 4 --part 3)
402+
(cd test/all && python3 run_all.py stm32 sam rp nrf --quick --split 4 --part 3)
399403
- name: Upload log artifacts
400404
uses: actions/upload-artifact@v4
401405
with:

.github/workflows/macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ jobs:
7575
if: always()
7676
run: |
7777
(cd examples && ../tools/scripts/examples_compile.py avr)
78+
79+
- name: Compile NRF Examples
80+
if: always()
81+
run: |
82+
(cd examples && ../tools/scripts/examples_compile.py nrf51422-dk nrf52840-dk nrf5340-dk)

.github/workflows/windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,9 @@ jobs:
136136
shell: bash
137137
run: |
138138
(cd examples && ../tools/scripts/examples_compile.py avr arduino_nano arduino_uno srxe)
139+
140+
- name: Compile NRF Examples
141+
if: always()
142+
shell: bash
143+
run: |
144+
(cd examples && ../tools/scripts/examples_compile.py nrf51422-dk nrf52840-dk nrf5340-dk)

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@
5858
[submodule "ext/libeigen/eigen"]
5959
path = ext/libeigen/eigen
6060
url = https://github.com/modm-ext/eigen-partial.git
61+
[submodule "ext/nordic/nrfx"]
62+
path = ext/nordic/nrfx
63+
url = https://github.com/modm-ext/nrfx-partial.git

0 commit comments

Comments
 (0)