esp-nimble-cpp/.github/workflows/build.yml

59 lines
1.9 KiB
YAML
Raw Normal View History

2022-08-27 17:49:49 +02:00
name: Build
on: [push, pull_request]
jobs:
build-esp-idf-component:
name: Build with ESP-IDF ${{ matrix.idf_ver }} for ${{ matrix.idf_target }}
runs-on: ubuntu-latest
strategy:
matrix:
# The version names here correspond to the versions of espressif/idf Docker image.
# See https://hub.docker.com/r/espressif/idf/tags and
# https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-docker-image.html
# for details.
2023-05-24 23:47:14 +02:00
idf_ver: ["release-v4.4", "release-v5.1"]
2022-08-27 17:49:49 +02:00
idf_target: ["esp32", "esp32s3", "esp32c3"]
example:
- Advanced/NimBLE_Client
- Advanced/NimBLE_Server
- basic/BLE_client
- basic/BLE_notify
- basic/BLE_scan
- basic/BLE_server
- basic/BLE_uart
- Bluetooth_5/NimBLE_extended_client
- Bluetooth_5/NimBLE_extended_server
- Bluetooth_5/NimBLE_multi_advertiser
exclude:
- idf_target: "esp32"
example: Bluetooth_5/NimBLE_extended_client
- idf_target: "esp32"
example: Bluetooth_5/NimBLE_extended_server
- idf_target: "esp32"
example: Bluetooth_5/NimBLE_multi_advertiser
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout
2023-05-24 23:47:14 +02:00
uses: actions/checkout@v3
2022-08-27 17:49:49 +02:00
with:
path: components/esp-nimble-cpp
- name: Build examples
env:
IDF_TARGET: ${{ matrix.idf_target }}
shell: bash
run: |
. ${IDF_PATH}/export.sh
cp -r components/esp-nimble-cpp/examples/* .
idf.py -C ${{ matrix.example }} -DEXTRA_COMPONENT_DIRS=$PWD/components build
2022-08-27 20:38:53 +02:00
build_docs:
runs-on: ubuntu-latest
steps:
2023-05-24 23:47:14 +02:00
- uses: actions/checkout@v3
2022-08-27 20:38:53 +02:00
- name: Doxygen Action
2023-05-24 23:47:14 +02:00
uses: mattnotmitt/doxygen-action@v1.9.5
2022-08-27 20:38:53 +02:00
with:
working-directory: 'docs/'