@@ -34,13 +34,12 @@ jobs:
3434 family :
3535 # Alphabetical order
3636 - ' broadcom_32bit'
37- - ' kinetis_k32 kinetis_kl'
38- - ' lpc11 lpc13 lpc15 lpc17 lpc18 '
37+ - ' kinetis_k32l kinetis_kl'
38+ - ' lpc11 lpc13 lpc15 lpc17'
3939 - ' lpc51 lpc54 lpc55'
4040 - ' mm32 msp432e4'
4141 - ' nrf'
4242 - ' ra'
43- - ' rp2040'
4443 - ' samd11 samd21'
4544 - ' samd51 same5x'
4645 - ' saml2x'
7776 echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
7877
7978 - name : Get Dependencies
80- run : python3 tools/get_family_deps .py ${{ matrix.family }}
79+ run : python3 tools/get_deps .py ${{ matrix.family }}
8180
8281 - name : Build
8382 run : python3 tools/build_family.py ${{ matrix.family }}
@@ -91,24 +90,11 @@ jobs:
9190 find ${ex} -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
9291 done
9392
94- # Upload binaries for rp2040/stm32l412nucleo hardware test with self-hosted
95-
96- - name : Prepare rp2040 Artifacts
97- if : contains(matrix.family, 'rp2040') && github.repository_owner == 'hathach'
98- run : find examples/ -name "*.elf" -exec mv {} . \;
99-
93+ # Upload binaries for hardware test with self-hosted
10094 - name : Prepare stm32l412nucleo Artifacts
10195 if : contains(matrix.family, 'stm32l4')
10296 run : find examples/ -path "*stm32l412nucleo/*.elf" -exec mv {} . \;
10397
104- - name : Upload Artifacts for rp2040
105- if : contains(matrix.family,'rp2040') && github.repository_owner == 'hathach'
106- uses : actions/upload-artifact@v3
107- with :
108- name : rp2040
109- path : |
110- *.elf
111-
11298 - name : Upload Artifacts for stm32l412nucleo
11399 if : contains(matrix.family, 'stm32l4') && github.repository_owner == 'hathach'
114100 uses : actions/upload-artifact@v3
@@ -117,66 +103,6 @@ jobs:
117103 path : |
118104 *.elf
119105
120- # ---------------------------------------
121- # Hardware in the loop (HIL)
122- # Current self-hosted instance is running on an RPI4 with
123- # - pico + pico-probe connected via USB
124- # - pico-probe is /dev/ttyACM0
125- # ---------------------------------------
126- hw-rp2040-test :
127- # run only with hathach's commit due to limited resource on RPI4
128- if : github.repository_owner == 'hathach'
129- needs : build-arm
130- runs-on : [self-hosted, Linux, ARM64, rp2040]
131-
132- steps :
133- - name : Clean workspace
134- run : |
135- echo "Cleaning up previous run"
136- rm -rf "${{ github.workspace }}"
137- mkdir -p "${{ github.workspace }}"
138-
139- - name : Download rp2040 Artifacts
140- uses : actions/download-artifact@v3
141- with :
142- name : rp2040
143-
144- - name : Create flash.sh
145- run : |
146- echo > flash.sh 'cmdout=$(openocd -f "interface/cmsis-dap.cfg" -f "target/rp2040.cfg" -c "adapter speed 5000" -c "program $1 reset exit")'
147- echo >> flash.sh 'if (( $? )) ; then echo $cmdout ; fi'
148- chmod +x flash.sh
149-
150- - name : Test cdc_dual_ports
151- run : |
152- ./flash.sh cdc_dual_ports.elf
153- while (! ([ -e /dev/ttyACM1 ] && [ -e /dev/ttyACM2 ])) && [ $SECONDS -le 10 ]; do :; done
154- test -e /dev/ttyACM1 && echo "ttyACM1 exists"
155- test -e /dev/ttyACM2 && echo "ttyACM2 exists"
156-
157- - name : Test cdc_msc
158- run : |
159- ./flash.sh cdc_msc.elf
160- readme='/media/pi/TinyUSB MSC/README.TXT'
161- while (! ([ -e /dev/ttyACM1 ] && [ -f "$readme" ])) && [ $SECONDS -le 10 ]; do :; done
162- test -e /dev/ttyACM1 && echo "ttyACM1 exists"
163- test -f "$readme" && echo "$readme exists"
164- cat "$readme"
165-
166- - name : Test dfu
167- run : |
168- ./flash.sh dfu.elf
169- while (! (dfu-util -l | grep "Found DFU")) && [ $SECONDS -le 10 ]; do :; done
170- dfu-util -d cafe -a 0 -U dfu0
171- dfu-util -d cafe -a 1 -U dfu1
172- grep "TinyUSB DFU! - Partition 0" dfu0
173- grep "TinyUSB DFU! - Partition 1" dfu1
174-
175- - name : Test dfu_runtime
176- run : |
177- ./flash.sh dfu_runtime.elf
178- while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done
179-
180106 # ---------------------------------------
181107 # Hardware in the loop (HIL)
182108 # Current self-hosted instance is running on an EPYC 7232 server hosted by HiFiPhile user
0 commit comments