-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b93f373
commit e465325
Showing
10 changed files
with
137 additions
and
52 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,47 @@ | ||
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}/export.sh | ||
cd ./components/esp_wifi_remote/scripts | ||
python parse_header.py | ||
./check_headers.sh | ||
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: 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
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
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
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,19 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
check_files=" | ||
include/esp_wifi_remote_api.h | ||
include/esp_wifi_remote_with_hosted.h | ||
esp_wifi_with_remote.c | ||
test/smoke_test/components/esp_hosted/esp_hosted_mock.c | ||
test/smoke_test/components/esp_hosted/include/esp_hosted_mock.h | ||
test/smoke_test/main/all_wifi_calls.c | ||
test/smoke_test/main/all_wifi_remote_calls.c | ||
" | ||
|
||
for i in $check_files; do | ||
generated_header="${i##*/}" | ||
current_header="../$i" | ||
echo "Checking $current_header" | ||
diff -I 'FileCopyrightText' $generated_header $current_header | ||
done; |
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
2 changes: 1 addition & 1 deletion
2
components/esp_wifi_remote/test/smoke_test/components/esp_hosted/esp_hosted_mock.c
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
2 changes: 1 addition & 1 deletion
2
components/esp_wifi_remote/test/smoke_test/components/esp_hosted/include/esp_hosted_mock.h
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
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,2 +1,2 @@ | ||
idf_component_register(SRCS "smoke_test.c" | ||
idf_component_register(SRCS "smoke_test.c" "all_wifi_calls.c" "all_wifi_remote_calls.c" | ||
INCLUDE_DIRS ".") |
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