File tree Expand file tree Collapse file tree 4 files changed +20
-11
lines changed
Expand file tree Collapse file tree 4 files changed +20
-11
lines changed Original file line number Diff line number Diff line change 1- name : Build
1+ name : Build native Zephyr samples
22
33on : [push, pull_request]
44
3333 - name : Build adc
3434 working-directory : build
3535 run : |
36- west build -p -b arduino_nano_33_ble/nrf52840/sense modules/lib/ArduinoCore-zephyr/samples/analog_input
36+ west build -p -b arduino_nano_33_ble/nrf52840/sense modules/lib/ArduinoCore-zephyr/samples/analog_input
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Package core
33on : [push, pull_request]
44
55jobs :
6- build :
6+ package-core :
77 runs-on : ubuntu-latest
88 env :
99 ZEPHYR_SDK_INSTALL_DIR : /opt/zephyr-sdk-0.16.8
2424 echo "CORE_TAG=$(git describe --always)" >> "$GITHUB_ENV"
2525
2626 - name : Build
27- run : ./extra/build_all.sh
27+ run : ./extra/build_all.sh -f
2828
2929 - name : Package
3030 run : |
3636 with :
3737 name : ArduinoCore-zephyr-${{ env.CORE_TAG }}
3838 path : ArduinoCore-zephyr-${{ env.CORE_TAG }}.*
39+ test-core :
40+ runs-on : ubuntu-latest
41+ steps :
42+ - uses : actions/download-artifact@v4
43+
44+ - name : Prepare core
45+ run : |
46+ unzip ArduinoCore-zephyr-${{ github.event.inputs.CORE_TAG }}.zip
47+ tar xf ArduinoCore-zephyr-${{ github.event.inputs.CORE_TAG }}.*
48+ cd ArduinoCore-zephyr
3949
4050 - name : Create Blink sketch
4151 run : |
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ if [ ! -z "$GITHUB_STEP_SUMMARY" ] ; then
2626fi
2727
2828jq -cr ' .[]' < ./extra/targets.json | while read -r item; do
29- board=$( jq -cr ' .board' <<< " $item" )
30- args=$( jq -cr ' .args' <<< " $item" )
29+ board=$( jq -cr ' .board // "" ' <<< " $item" )
30+ args=$( jq -cr ' .args // "" ' <<< " $item" )
3131
3232 variant=$( extra/get_variant_name.sh " $board " || echo " $board " )
3333 if [ -z " $GITHUB_STEP_SUMMARY " ] ; then
@@ -36,18 +36,18 @@ jq -cr '.[]' < ./extra/targets.json | while read -r item; do
3636 echo ${variant} | sed -e ' s/./=/g'
3737 echo
3838 else
39- echo " ::group::${variant} "
39+ echo " ::group::Building for ${variant} "
4040 fi
4141
4242 ./extra/build.sh " $board " $args
4343 result=$?
4444
4545 if [ ! -z " $GITHUB_STEP_SUMMARY " ] ; then
4646 if [ $result -eq 0 ] ; then
47- echo " - :heavy_check_mark: \` ${variant} \` " >> " $GITHUB_STEP_SUMMARY "
47+ echo " - :heavy_check_mark: ${variant} " >> " $GITHUB_STEP_SUMMARY "
4848 else
4949 echo " ::error::Build failure for ${variant} "
50- echo " - :x: \` ${variant} \` " >> " $GITHUB_STEP_SUMMARY "
50+ echo " - :x: ${variant} " >> " $GITHUB_STEP_SUMMARY "
5151 fi
5252 echo " ::endgroup::"
5353 fi
Original file line number Diff line number Diff line change 66 {
"board" :
" [email protected] //m7" },
77 { "board" : " ek_ra8d1" },
88 { "board" : " frdm_mcxn947/mcxn947/cpu0" },
9- { "board" : " frdm_rw612" },
10- {}
9+ { "board" : " frdm_rw612" }
1110]
You can’t perform that action at this time.
0 commit comments