2020-12-18 11:26:17 +00:00
|
|
|
name: build
|
2021-01-04 12:02:55 +00:00
|
|
|
on: [push, pull_request]
|
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
|
2022-03-18 12:16:20 -06:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
cc: [gcc, clang]
|
|
|
|
target: [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 10:41:27 +00:00
|
|
|
steps:
|
2022-03-06 21:59:25 -07:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-18 10:56:35 +00:00
|
|
|
- name: Install packages
|
2022-03-18 09:03:18 +00:00
|
|
|
run: sudo apt-get update ; sudo apt-get install libmbedtls-dev valgrind
|
2022-03-18 12:16:20 -06:00
|
|
|
- name: test
|
|
|
|
run: make ${{ matrix.target }}
|
2021-09-14 12:27:02 +01:00
|
|
|
- name: unamalgamated
|
|
|
|
run: make unamalgamated
|
2021-05-28 19:05:10 +01:00
|
|
|
examples:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-06 21:59:25 -07:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-28 19:05:10 +01:00
|
|
|
- name: Install packages
|
|
|
|
run: sudo apt-get install libmbedtls-dev
|
2020-12-21 12:33:27 +00:00
|
|
|
- name: examples
|
2021-07-29 14:21:20 +01:00
|
|
|
run: make clean examples
|
2020-12-18 11:09:03 +00:00
|
|
|
macos:
|
|
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
2022-03-06 21:59:25 -07:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-18 11:09:03 +00:00
|
|
|
- name: Install packages
|
2020-12-20 21:45:58 +00:00
|
|
|
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install jq mbedtls openssl
|
2020-12-18 11:09:03 +00:00
|
|
|
- name: make
|
2022-01-23 06:12:36 +00:00
|
|
|
run: make test++ upload-coverage IPV6=0 ASAN_OPTIONS=
|
2020-12-20 21:45:58 +00:00
|
|
|
- name: openssl
|
2022-01-23 06:58:06 +00:00
|
|
|
run: make test SSL=OPENSSL IPV6=0 ASAN_OPTIONS= OPENSSL=`echo /usr/local/Cellar/openssl*/*`
|
2020-12-21 12:33:27 +00:00
|
|
|
- name: exports
|
2020-12-21 12:39:03 +00:00
|
|
|
run: make mg_prefix
|
2020-12-18 11:12:08 +00:00
|
|
|
windows:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-06 21:59:25 -07:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-21 12:33:27 +00:00
|
|
|
- name: vc98
|
2020-12-25 19:28:05 +00:00
|
|
|
run: make vc98
|
2020-12-21 12:33:27 +00:00
|
|
|
- name: vc2017
|
|
|
|
run: make vc2017
|
2020-12-25 19:28:05 +00:00
|
|
|
- name: mingw
|
|
|
|
run: make mingw
|
|
|
|
- name: mingw++
|
|
|
|
run: make mingw++
|
2021-05-28 18:30:42 +01:00
|
|
|
arm:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-06 21:59:25 -07:00
|
|
|
- uses: actions/checkout@v3
|
2021-05-28 18:30:42 +01:00
|
|
|
- name: arm
|
|
|
|
run: make arm
|
2022-03-18 12:16:20 -06:00
|
|
|
matrix_examples:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
example:
|
|
|
|
- name: esp32
|
|
|
|
path: esp32
|
|
|
|
- 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
|
|
|
|
- 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-04-13 18:23:12 +03:00
|
|
|
- name: zephyr
|
|
|
|
path: zephyr
|
2022-05-15 19:18:18 +03:00
|
|
|
- name: ti
|
|
|
|
path: ti/ti-ek-tm4c1294xl-http-server
|
2022-03-18 12:16:20 -06:00
|
|
|
name: ${{ matrix.example.name }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: ${{ matrix.example.name }}
|
2022-04-13 18:23:12 +03:00
|
|
|
run: make -C examples/${{ matrix.example.path }} build
|