8585 needs : build-atomvmlib
8686 strategy :
8787 matrix :
88- board : ["pico", "pico_w", "pico2"]
88+ board : ["pico", "pico_w", "pico2", "pico2_w" ]
8989 platform : [""]
9090 jit : ["", "-DAVM_DISABLE_JIT=OFF"]
9191 include :
9797 platform : " -DPICO_PLATFORM=rp2350-riscv"
9898 jit : " -DAVM_DISABLE_JIT=OFF"
9999
100+ - board : " pico2_w"
101+ platform : " -DPICO_PLATFORM=rp2350-riscv"
102+ jit : " "
103+
104+ - board : " pico2_w"
105+ platform : " -DPICO_PLATFORM=rp2350-riscv"
106+ jit : " -DAVM_DISABLE_JIT=OFF"
107+
100108 steps :
101109 - name : Checkout repo
102110 uses : actions/checkout@v4
@@ -170,15 +178,15 @@ jobs:
170178 uses : github/codeql-action/analyze@v4
171179
172180 - name : Install nvm and nodejs 20
173- if : matrix.board != 'pico2'
181+ if : matrix.board != 'pico2' && matrix.board != 'pico2_w'
174182 run : |
175183 set -euo pipefail
176184 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
177185 source $HOME/.nvm/nvm.sh
178186 nvm install 24
179187
180188 - name : Build tests (without SMP)
181- if : matrix.board != 'pico2'
189+ if : matrix.board != 'pico2' && matrix.board != 'pico2_w'
182190 shell : bash
183191 working-directory : ./src/platforms/rp2/
184192 run : |
@@ -190,7 +198,7 @@ jobs:
190198 cmake --build . --target=rp2_tests
191199
192200 - name : Run tests with rp2040js
193- if : matrix.board != 'pico2'
201+ if : matrix.board != 'pico2' && matrix.board != 'pico2_w'
194202 shell : bash
195203 working-directory : ./src/platforms/rp2/tests
196204 run : |
@@ -223,7 +231,7 @@ jobs:
223231 run : |
224232 pushd build/libs
225233 ATOMVMLIB_FILE=atomvmlib-${{ matrix.board }}-${{env.AVM_REF_NAME}}.uf2
226- mv atomvmlib-${{matrix.board == 'pico_w' && 'pico' || matrix.board}}.uf2 "${ATOMVMLIB_FILE}"
234+ mv atomvmlib-${{matrix.board == 'pico_w' && 'pico' || matrix.board == 'pico2_w' && 'pico2' || matrix.board }}.uf2 "${ATOMVMLIB_FILE}"
227235 sha256sum "${ATOMVMLIB_FILE}" > "${ATOMVMLIB_FILE}.sha256"
228236 popd
229237
@@ -245,7 +253,7 @@ jobs:
245253
246254 - name : Release (Pico & Pico2)
247255 uses : softprops/action-gh-release@v1
248- if : startsWith(github.ref, 'refs/tags/') && matrix.board != 'pico_w' && matrix.platform == '' && matrix.jit == ''
256+ if : startsWith(github.ref, 'refs/tags/') && matrix.board != 'pico_w' && matrix.board != 'pico2_w' && matrix. platform == '' && matrix.jit == ''
249257 with :
250258 draft : true
251259 fail_on_unmatched_files : true
@@ -257,9 +265,9 @@ jobs:
257265 ${{ env.ATOMVM_COMBINED_FILE }}
258266 ${{ env.ATOMVM_COMBINED_FILE }}.sha256
259267
260- - name : Release (PicoW)
268+ - name : Release (PicoW & Pico2W )
261269 uses : softprops/action-gh-release@v1
262- if : startsWith(github.ref, 'refs/tags/') && matrix.board == 'pico_w' && matrix.platform == '' && matrix.jit == ''
270+ if : startsWith(github.ref, 'refs/tags/') && ( matrix.board == 'pico_w' || matrix.board == 'pico2_w') && matrix.platform == '' && matrix.jit == ''
263271 with :
264272 draft : true
265273 fail_on_unmatched_files : true
0 commit comments