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

66 lines
2 KiB
YAML
Raw Normal View History

2022-08-27 17:49:49 +02:00
name: Build
2023-09-01 19:56:52 +02:00
on:
2024-12-09 20:58:14 +01:00
workflow_dispatch:
2023-09-01 19:56:52 +02:00
pull_request:
push:
branches:
- master
2022-08-27 17:49:49 +02:00
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.
2024-12-03 16:47:41 +01:00
idf_ver: ["release-v4.4", "release-v5.1", "release-v5.3"]
idf_target: ["esp32", "esp32s3", "esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4"]
2022-08-27 17:49:49 +02:00
example:
2024-12-09 20:58:14 +01:00
- NimBLE_Client
- NimBLE_Server
2022-08-27 17:49:49 +02:00
- Bluetooth_5/NimBLE_extended_client
- Bluetooth_5/NimBLE_extended_server
exclude:
- idf_target: "esp32"
example: Bluetooth_5/NimBLE_extended_client
- idf_target: "esp32"
example: Bluetooth_5/NimBLE_extended_server
2023-08-13 18:08:11 +02:00
- idf_ver: release-v4.4
2023-09-01 19:56:52 +02:00
idf_target: "esp32c2"
- idf_ver: release-v4.4
idf_target: "esp32c6"
2024-06-18 12:49:36 +02:00
- idf_ver: release-v4.4
idf_target: "esp32h2"
2024-12-03 16:47:41 +01:00
- idf_ver: release-v4.4
idf_target: "esp32p4"
- idf_ver: release-v5.1
idf_target: "esp32p4"
2022-08-27 17:49:49 +02:00
container: espressif/idf:${{ matrix.idf_ver }}
steps:
- name: Checkout
2024-06-18 12:49:36 +02:00
uses: actions/checkout@v4
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:
2024-06-18 12:49:36 +02:00
- uses: actions/checkout@v4
2022-08-27 20:38:53 +02:00
- name: Doxygen Action
2024-12-08 00:49:40 +01:00
uses: mattnotmitt/doxygen-action@v1.9.8
2022-08-27 20:38:53 +02:00
with:
working-directory: 'docs/'