68
68
include :
69
69
- name : pico
70
70
board : PICO
71
+ - name : picow
72
+ board : PICO_W
71
73
- name : tiny2040
72
74
board : PIMORONI_TINY2040
73
75
- name : picolipo_4mb
@@ -76,23 +78,25 @@ jobs:
76
78
board : PIMORONI_PICOLIPO_16MB
77
79
- name : tufty2040
78
80
board : PIMORONI_TUFTY2040
79
- - name : picow
80
- board : PICO_W
81
+ local_board_dir : true
81
82
- name : enviro
82
- board : PICO_W
83
+ board : PICO_W_ENVIRO
84
+ local_board_dir : true
83
85
patch : true
84
86
- name : galactic_unicorn
85
87
board : PICO_W
86
88
- name : cosmic_unicorn
87
89
board : PICO_W
88
90
- name : inky_frame
89
- board : PICO_W
91
+ board : PICO_W_INKY
92
+ local_board_dir : true
90
93
patch : true
91
94
92
95
env :
93
96
# MicroPython version will be contained in github.event.release.tag_name for releases
94
97
RELEASE_FILE : pimoroni-${{matrix.name}}-${{github.event.release.tag_name || github.sha}}-micropython
95
- PICO_BOARD_HEADER_DIRS : micropython/lib/pico-sdk/src/boards/include/boards;pimoroni-pico-${{ github.sha }}/micropython/board/inc
98
+ MICROPY_BOARD_DIR : " $GITHUB_WORKSPACE/pimoroni-pico-${{ github.sha }}/micropython/board/${{ matrix.BOARD }}"
99
+ USER_C_MODULES : " $GITHUB_WORKSPACE/pimoroni-pico-${GITHUB_SHA}/micropython/modules/micropython-${{matrix.name}}.cmake"
96
100
97
101
steps :
98
102
- name : Compiler Cache
@@ -129,12 +133,20 @@ jobs:
129
133
run : |
130
134
../../../pimoroni-pico-${GITHUB_SHA}/micropython/board/pico-sdk-patch.sh ${{matrix.board}}
131
135
132
- - name : Configure MicroPython
136
+ - name : Configure MicroPython (Local Board Dir)
137
+ if : matrix.local_board_dir == true
133
138
shell : bash
134
139
working-directory : micropython/ports/rp2
135
140
run : |
136
- cmake -S . -B build-${{matrix.board}} -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=../../../pimoroni-pico-${GITHUB_SHA}/micropython/modules/micropython-${{matrix.name}}.cmake -DMICROPY_BOARD=${{matrix.board}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
137
-
141
+ cmake -S . -B build-${{matrix.board}} -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=${{env.USER_C_MODULES}} -DMICROPY_BOARD_DIR=${{env.MICROPY_BOARD_DIR}} -DMICROPY_BOARD=${{matrix.board}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
142
+
143
+ - name : Configure MicroPython (Upstream Board Dir)
144
+ if : matrix.local_board_dir != true
145
+ shell : bash
146
+ working-directory : micropython/ports/rp2
147
+ run : |
148
+ cmake -S . -B build-${{matrix.board}} -DPICO_BUILD_DOCS=0 -DUSER_C_MODULES=${{env.USER_C_MODULES}} -DMICROPY_BOARD=${{matrix.board}} -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
149
+
138
150
- name : Build MicroPython
139
151
shell : bash
140
152
working-directory : micropython/ports/rp2
0 commit comments