Skip to content

Commit c4a5edc

Browse files
committed
Add esp-homekit as submodule and fix build script
1 parent af0fc9e commit c4a5edc

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,13 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v4
17-
18-
- name: Checkout ESP HomeKit SDK
15+
- name: Checkout repository with submodules
1916
uses: actions/checkout@v4
2017
with:
21-
repository: espressif/esp-homekit-sdk
22-
path: esp/esp-homekit-sdk
23-
ref: bfbcd6e749635d97645380b9d7b32274553fe017
24-
18+
submodules: recursive
19+
2520
- name: ESP-IDF Build
2621
uses: espressif/esp-idf-ci-action@v1
2722
with:
@@ -30,7 +25,7 @@ jobs:
3025
path: '.'
3126
command: |
3227
idf.py build
33-
28+
3429
- name: Upload build artifacts
3530
uses: actions/upload-artifact@v4
3631
with:
@@ -39,17 +34,17 @@ jobs:
3934
build/konnected-homekit.bin
4035
build/bootloader/bootloader.bin
4136
build/partition_table/partition-table.bin
42-
build/flash_args
37+
build/flash_argshttps://github.com/espressif/esp-homekit-sdk.git
4338
build/flasher_args.json
4439
if-no-files-found: error
45-
40+
4641
- name: Upload build size report
4742
if: success()
4843
run: |
4944
idf.py size > size-report.txt
5045
cat size-report.txt
5146
continue-on-error: true
52-
47+
5348
- name: Archive build size report
5449
uses: actions/upload-artifact@v4
5550
if: success()

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "components/gdolib"]
22
path = components/gdolib
33
url = https://github.com/konnected-io/gdolib.git
4+
[submodule "esp-homekit-sdk"]
5+
path = esp-homekit-sdk
6+
url = https://github.com/espressif/esp-homekit-sdk.git

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.16)
33
if(DEFINED ENV{HOMEKIT_PATH})
44
set(HOMEKIT_PATH $ENV{HOMEKIT_PATH})
55
else()
6-
set(HOMEKIT_PATH ${CMAKE_CURRENT_LIST_DIR}/esp/esp-homekit-sdk/)
6+
set(HOMEKIT_PATH ${CMAKE_CURRENT_LIST_DIR}/esp-homekit-sdk/)
77
endif(DEFINED ENV{HOMEKIT_PATH})
88

99
set(EXTRA_COMPONENT_DIRS ${HOMEKIT_PATH}/components ${HOMEKIT_PATH}/components/homekit)

0 commit comments

Comments
 (0)