145 lines
5.2 KiB
YAML
Raw Normal View History

2020-12-18 11:26:17 +00:00
name: build
on: [push, pull_request]
2022-10-31 10:40:34 +00:00
env:
IPV6: 0
2020-12-18 10:41:27 +00:00
jobs:
2020-12-18 11:09:03 +00:00
linux:
2020-12-18 10:41:27 +00:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
2022-09-22 10:34:38 +01:00
cc: [gcc, clang, g++, clang++]
2022-11-29 11:20:22 +01:00
target: [test, mip_test]
# target: [test]
ssl: [MBEDTLS, OPENSSL]
name: linux ${{ matrix.target }} CC=${{ matrix.cc }} SSL=${{ matrix.ssl }}
env:
CC: ${{ matrix.cc }}
SSL: ${{ matrix.ssl }}
2020-12-18 10:41:27 +00:00
steps:
- uses: actions/checkout@v3
2022-11-29 11:20:22 +01:00
- run: ./test/setup_ga_network.sh
2022-09-22 10:34:38 +01:00
- run: sudo apt-get update ; sudo apt-get install libmbedtls-dev
- run: make ${{ matrix.target }}
2022-10-31 10:40:34 +00:00
s390:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install qemu binfmt-support qemu-user-static
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- run: make s390
2022-10-31 10:40:34 +00:00
armhf:
runs-on: ubuntu-latest
2022-09-26 02:55:27 -04:00
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install qemu binfmt-support qemu-user-static
- run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- run: make armhf
2022-09-22 10:34:38 +01:00
linux2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update ; sudo apt-get install libmbedtls-dev valgrind
2022-10-28 15:35:40 +01:00
- run: make unamalgamated
2022-10-31 10:40:34 +00:00
- run: make valgrind
2022-09-22 10:34:38 +01:00
- run: make mg_prefix
2021-05-28 19:05:10 +01:00
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install libmbedtls-dev libpcap-dev
- run: make clean examples
2022-10-31 10:40:34 +00:00
- run: make clean test MG_ENABLE_POLL=1
2020-12-18 11:09:03 +00:00
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
2022-11-24 07:02:17 +00:00
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install jq mbedtls openssl
- run: make test upload-coverage SSL=OPENSSL ASAN_OPTIONS= OPENSSL=`echo /usr/local/Cellar/openssl*/*`
- run: make test SSL=MBEDTLS ASAN_OPTIONS= MBEDTLS=`echo /usr/local/Cellar/mbedtls*/*`
2022-11-24 07:21:55 +00:00
#- run: make mip_test ASAN_OPTIONS=
2022-11-24 07:02:17 +00:00
- run: make mg_prefix
2020-12-18 11:12:08 +00:00
windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make vc98
2022-08-09 19:22:47 +01:00
- run: make vc17
- run: make vc22
- run: make mingw
- run: make mingw++
2022-11-11 08:50:57 +00:00
arduino-xiao:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make arduino-xiao
arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make arm
2022-09-22 10:34:38 +01:00
riscv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make riscv
matrix_examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example:
2022-10-12 13:54:04 +01:00
- path: esp32/device-dashboard
- path: esp32/uart-bridge
- path: esp8266
- path: stm32/stm32-freertos-tcp
- path: stm32/stm32-nucleo-f746z
- path: stm32/stm32-nucleo-f746zg
- path: stm32/stm32-nucleo-f429z
- path: stm32/stm32-nucleo-h743z
- path: stm32/nucleo-f429zi-baremetal
- path: stm32/nucleo-f746zg-baremetal
- 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: infineon/infineon-xmc4700_4800-lwip-rtx-rtos
- path: ti/ti-ek-tm4c1294xl-http-server
2022-11-11 20:15:01 -03:00
- path: ti/ek-tm4c1294xl-baremetal
2022-10-12 13:54:04 +01:00
- path: raspberry/raspberry-pi-pico-w
2022-10-19 09:24:19 +01:00
name: ${{ matrix.example.path }}
2022-10-06 16:32:33 -03:00
steps:
- uses: actions/checkout@v3
2022-10-31 10:40:34 +00:00
- name: ${{ matrix.example.path }}
2022-10-06 16:32:33 -03:00
run: make -C examples/${{ matrix.example.path }} build
2022-11-14 16:35:24 -03:00
zephyr_examples:
2022-10-06 16:32:33 -03:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2022-11-14 16:35:24 -03:00
- run: make -C examples/zephyr init
- name: minify manifest
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
- run: make -C examples/zephyr update
- run: make -C examples/zephyr/device-dashboard build
- run: make -C examples/zephyr/http-client build
- run: make -C examples/zephyr/http-server build
- run: make -C examples/zephyr/mqtt-aws-client build
- run: make -C examples/zephyr/websocket-server build