mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-25 12:04:47 +00:00
work in progress
This commit is contained in:
1 parent
dd6458262d
commit
7c62b5005e
3 files changed
+1725
-221
No files matched your search
+307
-221
@@ -1,10 +1,7 @@
|
||||
name: build
|
||||
name: original workflow, updated
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "**Makefile"
|
||||
- "**.c"
|
||||
- "**.h"
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
IPV6: 0
|
||||
jobs:
|
||||
@@ -149,6 +146,310 @@ jobs:
|
||||
- run: make clean_examples_mac
|
||||
|
||||
|
||||
arduino:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh "^src|examples/device-dashboard|examples/arduino" ; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
# nothing specific to install or do
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/arduino'; then
|
||||
make -C examples/arduino arduino-xiao
|
||||
fi
|
||||
# - if: ${{ env.GO == 1 }}
|
||||
# run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/arduino'; then
|
||||
# make -C examples/arduino arduino-nano
|
||||
# fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/arduino clean
|
||||
|
||||
|
||||
generic_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: esp32/uart-bridge
|
||||
- path: esp32/micropython
|
||||
- path: esp8266/http-client-server
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: if ./test/match_changed_files.sh '^src|^examples/${{ matrix.example.path }}'; then echo GO=1 >> $GITHUB_ENV ; fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
# nothing specific to install or do
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
generic_examples_arm:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: microchip/same54-xpro/mqtt-client
|
||||
- path: infineon/infineon-xmc4700_4800-lwip-rtx-rtos
|
||||
- path: nxp/nxp-mimxrt1020-azurertos
|
||||
- path: nxp/nxp-frdmk66f-freertos
|
||||
- path: nxp/nxp-lpcxpresso54s018m-freertos
|
||||
- path: nxp/nxp-mimxrt1020-freertos
|
||||
- path: nxp/nxp-evkbimxrt1050-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1020-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1024-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1060-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1064-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1160-cm7-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1170-cm7-lwip-freertos
|
||||
- path: nxp/nxp-frdmk64f-lwip-freertos
|
||||
- path: nxp/nxp-frdmk66f-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54018-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54608-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54618-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54628-lwip-freertos
|
||||
- path: nxp/nxp-twrk65f180m-lwip-freertos
|
||||
- path: nxp/nxp-twrkv58f220m-lwip-freertos
|
||||
- path: rp2040/pico-rmii
|
||||
- path: stm32/nucleo-f429zi-make-baremetal-builtin-rndis
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin-rndis
|
||||
- path: stm32/nucleo-g031-make-baremetal-builtin
|
||||
- path: ti/ti-ek-tm4c1294xl-http-server
|
||||
- path: ti/ek-tm4c1294xl-make-baremetal-builtin-rndis
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: if ./test/match_changed_files.sh '^src|^examples/${{ matrix.example.path }}'; then echo GO=1 >> $GITHUB_ENV ; fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
device_dashboard_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: esp32/device-dashboard
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
# nothing specific to install or do
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
device_dashboard_examples_arm:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: microchip/same54-xpro/device-dashboard
|
||||
- path: nxp/rt1020-evk-make-baremetal-builtin
|
||||
- path: nxp/rt1020-evk-make-freertos-builtin
|
||||
- path: nxp/rt1060-evk-make-baremetal-builtin
|
||||
- path: nxp/rt1060-evk-make-freertos-builtin
|
||||
- path: rp2040/pico-rndis-dashboard
|
||||
- path: rp2040/pico-w
|
||||
- path: rp2040/pico-w5500
|
||||
- path: stm32/nucleo-f429zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-f429zi-make-freertos-builtin
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin
|
||||
- path: stm32/nucleo-f746zg-make-freertos-builtin
|
||||
- path: stm32/nucleo-f746zg-make-freertos-tcp
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver
|
||||
- path: stm32/nucleo-h563zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-h563zi-make-freertos-builtin
|
||||
- path: stm32/nucleo-h723zg-make-freertos-builtin
|
||||
- path: stm32/nucleo-h743zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-h743zi-make-freertos-builtin
|
||||
- path: stm32/stm32h573i-dk-make-baremetal-builtin
|
||||
- path: stm32/stm32h573i-dk-make-freertos-builtin
|
||||
- path: ti/ek-tm4c1294xl-make-baremetal-builtin
|
||||
- path: ti/ek-tm4c1294xl-make-freertos-builtin
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
# mqtt_dashboard_examples:
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# example:
|
||||
# - path:
|
||||
# name: ${{ matrix.example.path }}
|
||||
# env:
|
||||
# GO: 0
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# with: { fetch-depth: 2 }
|
||||
# - run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
# echo GO=1 >> $GITHUB_ENV
|
||||
# # nothing specific to install or do
|
||||
# fi
|
||||
# - if: ${{ env.GO == 1 }}
|
||||
# run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
mqtt_dashboard_examples_arm:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: rp2040/pico-rndis-device
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
# dual_examples:
|
||||
# runs-on: ubuntu-latest
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# example:
|
||||
# - path:
|
||||
# name: ${{ matrix.example.path }}
|
||||
# env:
|
||||
# GO: 0
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# with: { fetch-depth: 2 }
|
||||
# - run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/device-dashboard|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
# echo GO=1 >> $GITHUB_ENV
|
||||
# # nothing specific to install or do
|
||||
# fi
|
||||
# - if: ${{ env.GO == 1 }}
|
||||
# run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
# make -C examples/${{ matrix.example.path }} device_dashboard
|
||||
# fi
|
||||
# - if: ${{ env.GO == 1 }}
|
||||
# run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
# make -C examples/${{ matrix.example.path }} mqtt_dashboard
|
||||
# fi
|
||||
|
||||
dual_examples_arm:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: stm32/nucleo-h723zg-make-baremetal-builtin
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
make -C examples/${{ matrix.example.path }} device_dashboard
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
make -C examples/${{ matrix.example.path }} mqtt_dashboard
|
||||
fi
|
||||
|
||||
cube_examples:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-*-cube-*'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
# nothing specific to install or do
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: cd test/cube && make
|
||||
|
||||
zephyr_examples:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src/.*.[ch]|^examples/zephyr'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr init
|
||||
- name: minify manifest
|
||||
if: ${{ env.GO == 1 }}
|
||||
uses: mikefarah/yq@master
|
||||
with:
|
||||
cmd: yq -i eval '(.manifest.defaults, .manifest.remotes, .manifest.projects[] | select(.name == "cmsis" or .name == "hal_stm32" or .name == "mbedtls" or .name == "mcuboot" or .name == "picolibc" | del(.null) ), .manifest.self) as $i ireduce({};setpath($i | path; $i)) | del(.manifest.projects.[].null) | del(..|select(length==0))' examples/zephyr/zephyrproject/zephyr/west.yml
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr update
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/device-dashboard build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/http-client build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/http-server build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/mqtt-aws-client build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/websocket-server build
|
||||
|
||||
test_f7:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
@@ -438,218 +739,3 @@ jobs:
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/rp2040/pico-w5500 test VCON_API_KEY=${{secrets.VCON_API_KEY}}
|
||||
|
||||
|
||||
arduino:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh "^src|examples/device-dashboard|examples/arduino" ; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
# nothing specific to install or do
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/arduino'; then
|
||||
make -C examples/arduino arduino-xiao
|
||||
fi
|
||||
# - if: ${{ env.GO == 1 }}
|
||||
# run: |
|
||||
# if ./test/match_changed_files.sh '^src|examples/arduino'; then
|
||||
# make -C examples/arduino arduino-nano
|
||||
# fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/arduino clean
|
||||
|
||||
|
||||
generic_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: esp32/uart-bridge
|
||||
- path: esp32/micropython
|
||||
- path: esp8266/http-client-server
|
||||
- path: microchip/same54-xpro/mqtt-client
|
||||
- path: infineon/infineon-xmc4700_4800-lwip-rtx-rtos
|
||||
- path: nxp/nxp-mimxrt1020-azurertos
|
||||
- path: nxp/nxp-frdmk66f-freertos
|
||||
- path: nxp/nxp-lpcxpresso54s018m-freertos
|
||||
- path: nxp/nxp-mimxrt1020-freertos
|
||||
- path: nxp/nxp-evkbimxrt1050-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1020-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1024-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1060-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1064-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1160-cm7-lwip-freertos
|
||||
- path: nxp/nxp-evkmimxrt1170-cm7-lwip-freertos
|
||||
- path: nxp/nxp-frdmk64f-lwip-freertos
|
||||
- path: nxp/nxp-frdmk66f-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54018-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54608-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54618-lwip-freertos
|
||||
- path: nxp/nxp-lpcxpresso54628-lwip-freertos
|
||||
- path: nxp/nxp-twrk65f180m-lwip-freertos
|
||||
- path: nxp/nxp-twrkv58f220m-lwip-freertos
|
||||
- path: rp2040/pico-rmii
|
||||
- path: stm32/nucleo-f429zi-make-baremetal-builtin-rndis
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin-rndis
|
||||
- path: stm32/nucleo-g031-make-baremetal-builtin
|
||||
- path: ti/ti-ek-tm4c1294xl-http-server
|
||||
- path: ti/ek-tm4c1294xl-make-baremetal-builtin-rndis
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: if ./test/match_changed_files.sh '^src|^examples/${{ matrix.example.path }}'; then echo GO=1 >> $GITHUB_ENV ; fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
device_dashboard_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: esp32/device-dashboard
|
||||
- path: microchip/same54-xpro/device-dashboard
|
||||
- path: nxp/rt1020-evk-make-baremetal-builtin
|
||||
- path: nxp/rt1020-evk-make-freertos-builtin
|
||||
- path: nxp/rt1060-evk-make-baremetal-builtin
|
||||
- path: nxp/rt1060-evk-make-freertos-builtin
|
||||
- path: rp2040/pico-rndis-dashboard
|
||||
- path: rp2040/pico-w
|
||||
- path: rp2040/pico-w5500
|
||||
- path: stm32/nucleo-f429zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-f429zi-make-freertos-builtin
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin
|
||||
- path: stm32/nucleo-f746zg-make-freertos-builtin
|
||||
- path: stm32/nucleo-f746zg-make-freertos-tcp
|
||||
- path: stm32/nucleo-f746zg-make-baremetal-builtin-cmsis_driver
|
||||
- path: stm32/nucleo-h563zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-h563zi-make-freertos-builtin
|
||||
- path: stm32/nucleo-h723zg-make-freertos-builtin
|
||||
- path: stm32/nucleo-h743zi-make-baremetal-builtin
|
||||
- path: stm32/nucleo-h743zi-make-freertos-builtin
|
||||
- path: stm32/stm32h573i-dk-make-baremetal-builtin
|
||||
- path: stm32/stm32h573i-dk-make-freertos-builtin
|
||||
- path: ti/ek-tm4c1294xl-make-baremetal-builtin
|
||||
- path: ti/ek-tm4c1294xl-make-freertos-builtin
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
mqtt_dashboard_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: rp2040/pico-rndis-device
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/${{ matrix.example.path }} build
|
||||
|
||||
dual_examples:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
example:
|
||||
- path: stm32/nucleo-h723zg-make-baremetal-builtin
|
||||
name: ${{ matrix.example.path }}
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/device-dashboard|^examples/${{ matrix.example.path }}'; then
|
||||
make -C examples/${{ matrix.example.path }} device_dashboard
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/mqtt-dashboard/device|^examples/${{ matrix.example.path }}'; then
|
||||
make -C examples/${{ matrix.example.path }} mqtt_dashboard
|
||||
fi
|
||||
|
||||
cube_examples:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src|examples/stm32/nucleo-*-cube-*'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
# nothing specific to install or do
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: cd test/cube && make
|
||||
|
||||
zephyr_examples:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GO: 0
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with: { fetch-depth: 2 }
|
||||
- run: |
|
||||
if ./test/match_changed_files.sh '^src/.*.[ch]|^examples/zephyr'; then
|
||||
echo GO=1 >> $GITHUB_ENV
|
||||
sudo apt -y update && sudo apt -y install gcc-arm-none-eabi
|
||||
fi
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr init
|
||||
- name: minify manifest
|
||||
if: ${{ env.GO == 1 }}
|
||||
uses: mikefarah/yq@master
|
||||
with:
|
||||
cmd: yq -i eval '(.manifest.defaults, .manifest.remotes, .manifest.projects[] | select(.name == "cmsis" or .name == "hal_stm32" or .name == "mbedtls" or .name == "mcuboot" or .name == "picolibc" | del(.null) ), .manifest.self) as $i ireduce({};setpath($i | path; $i)) | del(.manifest.projects.[].null) | del(..|select(length==0))' examples/zephyr/zephyrproject/zephyr/west.yml
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr update
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/device-dashboard build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/http-client build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/http-server build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/mqtt-aws-client build
|
||||
- if: ${{ env.GO == 1 }}
|
||||
run: make -C examples/zephyr/websocket-server build
|
||||
Reference in new issue
Block a user