Skip to content

Commit e876b7b

Browse files
committed
wqqw
1 parent 4e5526b commit e876b7b

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build native Zephyr samples
22

33
on: [push, pull_request]
44

@@ -33,4 +33,4 @@ jobs:
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

.github/workflows/package_core.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Package core
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
package-core:
77
runs-on: ubuntu-latest
88
env:
99
ZEPHYR_SDK_INSTALL_DIR: /opt/zephyr-sdk-0.16.8
@@ -24,7 +24,7 @@ jobs:
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: |
@@ -36,6 +36,16 @@ jobs:
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: |

extra/build_all.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ if [ ! -z "$GITHUB_STEP_SUMMARY" ] ; then
2626
fi
2727

2828
jq -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

extra/targets.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
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
]

0 commit comments

Comments
 (0)