mongoose/.github/workflows/test.yml

130 lines
4.8 KiB
YAML
Raw Normal View History

2020-12-18 19:26:17 +08:00
name: build
2022-09-09 18:11:53 +08:00
on: [push, pull_request_target]
2020-12-18 18:41:27 +08:00
jobs:
2020-12-18 19:09:03 +08:00
linux:
2020-12-18 18:41:27 +08:00
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cc: [gcc, clang]
2022-09-09 18:11:53 +08:00
target: [test, mip_test, test++, valgrind]
ssl: [MBEDTLS, OPENSSL]
name: linux ${{ matrix.target }} CC=${{ matrix.cc }} SSL=${{ matrix.ssl }}
env:
IPV6: 0
CC: ${{ matrix.cc }}
SSL: ${{ matrix.ssl }}
2020-12-18 18:41:27 +08:00
steps:
- uses: actions/checkout@v3
2020-12-18 18:56:35 +08:00
- name: Install packages
2022-03-18 17:03:18 +08:00
run: sudo apt-get update ; sudo apt-get install libmbedtls-dev valgrind
- name: test
run: make ${{ matrix.target }}
2021-09-14 19:27:02 +08:00
- name: unamalgamated
run: make unamalgamated
2021-05-29 02:05:10 +08:00
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install libmbedtls-dev libpcap-dev
- run: make clean examples
- run: make clean test IPV6=0 MG_ENABLE_POLL=1
2020-12-18 19:09:03 +08:00
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
2022-08-07 03:30:12 +08:00
- run: HOMEBREW_NO_AUTO_UPDATE=1 brew install jq mbedtls openssl
- run: make test++ upload-coverage IPV6=0 ASAN_OPTIONS=
- run: make test SSL=OPENSSL IPV6=0 ASAN_OPTIONS= OPENSSL=`echo /usr/local/Cellar/openssl*/*`
2022-09-09 18:11:53 +08:00
- run: make mip_test ASAN_OPTIONS=
- run: make mg_prefix
2020-12-18 19:12:08 +08:00
windows:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make vc98
2022-08-10 02:22:47 +08:00
- run: make vc17
- run: make vc22
- run: make mingw
- run: make mingw++
arm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make arm
matrix_examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example:
2022-06-08 20:24:41 +08:00
- name: esp32/device-dashboard
path: esp32/device-dashboard
- name: esp8266
path: esp8266
- name: stm32-freertos-tcp
path: stm32/stm32-freertos-tcp
- name: stm32-nucleo-f746z
path: stm32/stm32-nucleo-f746z
- name: stm32-nucleo-f429z
path: stm32/stm32-nucleo-f429z
- name: stm32-nucleo-h743z
path: stm32/stm32-nucleo-h743z
2022-05-26 20:53:36 +08:00
- name: stm32-nucleo-f746zg-baremetal
path: stm32/nucleo-f746zg-baremetal
- name: nxp-mimxrt1020-azurertos
path: nxp/nxp-mimxrt1020-azurertos
- name: nxp-frdmk66f-freertos
path: nxp/nxp-frdmk66f-freertos
- name: nxp-lpcxpresso54s018m-freertos
path: nxp/nxp-lpcxpresso54s018m-freertos
- name: nxp-mimxrt1020-freertos
path: nxp/nxp-mimxrt1020-freertos
- name: nxp-evkbimxrt1050-lwip-freertos
path: nxp/nxp-evkbimxrt1050-lwip-freertos
- name: nxp-evkmimxrt1020-lwip-freertos
path: nxp/nxp-evkmimxrt1020-lwip-freertos
- name: nxp-evkmimxrt1024-lwip-freertos
path: nxp/nxp-evkmimxrt1024-lwip-freertos
- name: nxp-evkmimxrt1060-lwip-freertos
path: nxp/nxp-evkmimxrt1060-lwip-freertos
- name: nxp-evkmimxrt1064-lwip-freertos
path: nxp/nxp-evkmimxrt1064-lwip-freertos
- name: nxp-evkmimxrt1160-cm7-lwip-freertos
path: nxp/nxp-evkmimxrt1160-cm7-lwip-freertos
- name: nxp-evkmimxrt1170-cm7-lwip-freertos
path: nxp/nxp-evkmimxrt1170-cm7-lwip-freertos
- name: nxp-frdmk64f-lwip-freertos
path: nxp/nxp-frdmk64f-lwip-freertos
- name: nxp-frdmk66f-lwip-freertos
path: nxp/nxp-frdmk66f-lwip-freertos
- name: nxp-lpcxpresso54018-lwip-freertos
path: nxp/nxp-lpcxpresso54018-lwip-freertos
- name: nxp-lpcxpresso54608-lwip-freertos
path: nxp/nxp-lpcxpresso54608-lwip-freertos
- name: nxp-lpcxpresso54618-lwip-freertos
path: nxp/nxp-lpcxpresso54618-lwip-freertos
- name: nxp-lpcxpresso54628-lwip-freertos
path: nxp/nxp-lpcxpresso54628-lwip-freertos
- name: nxp-twrk65f180m-lwip-freertos
path: nxp/nxp-twrk65f180m-lwip-freertos
- name: nxp-twrkv58f220m-lwip-freertos
path: nxp/nxp-twrkv58f220m-lwip-freertos
- name: infineon-xmc4700_4800-lwip-rtx-rtos
path: infineon/infineon-xmc4700_4800-lwip-rtx-rtos
2022-05-16 00:18:18 +08:00
- name: ti
path: ti/ti-ek-tm4c1294xl-http-server
2022-05-16 18:10:01 +08:00
- name: nucleo_f746zg-zephyr-http-client
path: zephyr/http-client
- name: nucleo_f746zg-zephyr-http-server
path: zephyr/http-server
- name: nucleo_f746zg-zephyr-mqtt-aws-client
path: zephyr/mqtt-aws-client
- name: nucleo_f746zg-zephyr-websocket-server
path: zephyr/websocket-server
name: ${{ matrix.example.name }}
steps:
- uses: actions/checkout@v3
- name: ${{ matrix.example.name }}
2022-05-26 20:53:36 +08:00
run: make -C examples/${{ matrix.example.path }} build