-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wifi_remote): Added generation step for wifi_remote based on IDF
* Original commit: espressif/esp-protocols@dfb0035
- Loading branch information
1 parent
b9d7970
commit a80dc28
Showing
43 changed files
with
4,884 additions
and
657 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: "esp_wifi_remote: build-tests" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened, labeled] | ||
|
||
jobs: | ||
wifi_remote_api_compat: | ||
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push' | ||
name: Check API compatibility of WiFi Remote | ||
strategy: | ||
matrix: | ||
idf_ver: ["latest"] | ||
runs-on: ubuntu-20.04 | ||
container: espressif/idf:${{ matrix.idf_ver }} | ||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@v3 | ||
- name: Check that headers are the same as generated | ||
shell: bash | ||
run: | | ||
${IDF_PATH}/install.sh --enable-pytest | ||
. ${IDF_PATH}/export.sh | ||
cd ./components/esp_wifi_remote/scripts | ||
python generate_and_check.py | ||
build_wifi_remote: | ||
if: contains(github.event.pull_request.labels.*.name, 'wifi_remote') || github.event_name == 'push' | ||
name: Build WiFi Remote | ||
strategy: | ||
matrix: | ||
idf_ver: ["latest"] | ||
test: [ { app: smoke_test, path: "test/smoke_test" }] | ||
runs-on: ubuntu-20.04 | ||
container: espressif/idf:${{ matrix.idf_ver }} | ||
steps: | ||
- name: Checkout esp-protocols | ||
uses: actions/checkout@v3 | ||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: ${{ matrix.idf_ver }} | ||
- name: Build ${{ matrix.test.app }} with IDF-${{ matrix.idf_ver }} | ||
shell: bash | ||
run: | | ||
${IDF_PATH}/install.sh --enable-pytest | ||
. ${IDF_PATH}/export.sh | ||
python ./ci/build_apps.py ./components/esp_wifi_remote/${{matrix.test.path}} -vv --preserve-all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
commitizen: | ||
bump_message: 'bump(wifi_remote): $current_version -> $new_version' | ||
pre_bump_hooks: python ../../ci/changelog.py esp_wifi_remote | ||
tag_format: wifi_remote-v$version | ||
version: 0.1.12 | ||
version_files: | ||
- idf_component.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
if(NOT CONFIG_ESP_WIFI_ENABLED) | ||
set(src_wifi_is_remote esp_wifi_remote.c) | ||
set(src_wifi_is_remote esp_wifi_remote.c esp_wifi_with_remote.c) | ||
endif() | ||
|
||
idf_component_register(INCLUDE_DIRS include | ||
SRCS wifi_remote_rpc.c wifi_remote_net.c wifi_remote_init.c ${src_wifi_is_remote} | ||
SRCS ${src_wifi_is_remote} | ||
esp_wifi_remote_net.c | ||
esp_wifi_remote_weak.c | ||
REQUIRES esp_event esp_netif | ||
PRIV_REQUIRES esp_wifi esp_hosted) | ||
PRIV_REQUIRES esp_wifi) | ||
|
||
idf_component_optional_requires(PRIVATE esp_hosted) | ||
|
||
idf_component_get_property(wifi esp_wifi COMPONENT_LIB) | ||
target_link_libraries(${wifi} PUBLIC ${COMPONENT_LIB}) |
Oops, something went wrong.