Skip to content

Commit

Permalink
Fix up esp32 builds and make sure CI will catch future errors in usin…
Browse files Browse the repository at this point in the history
…g build_examples to compile
  • Loading branch information
andy31415 committed Dec 7, 2021
1 parent 2ece989 commit 48050d0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:
name: ESP32
timeout-minutes: 85

env:
BUILD_TYPE: esp32

runs-on: ubuntu-latest
if: github.actor != 'restyled-io[bot]'

Expand Down Expand Up @@ -62,29 +59,31 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example All Clusters App
timeout-minutes: 10
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_m5stack.defaults
- name: Copy aside build products
- name: Build some M5Stack variations
timeout-minutes: 20
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py \
--target-glob '*-m5stack-{all-clusters,all-clusters-rpc-ipv6only' build \
--copy-artifacts-to out/artifacts \
"
- name: Prepare bloat report
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 m5stack all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
out/esp32-m5stack-all-clusters/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example All Clusters App C3
timeout-minutes: 10
run: scripts/examples/esp_example.sh all-clusters-app sdkconfig_c3devkit.defaults
- name: Copy aside build products
run: |
mkdir -p example_binaries/$BUILD_TYPE-build
mkdir -p example_binaries/esp32-build
cp examples/all-clusters-app/esp32/build/chip-all-clusters-app.elf \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf
example_binaries/esp32-build/chip-all-clusters-app.elf
.environment/pigweed-venv/bin/python3 scripts/tools/memory/gh_sizes.py \
esp32 c3devkit all-clusters-app \
example_binaries/$BUILD_TYPE-build/chip-all-clusters-app.elf \
example_binaries/esp32-build/chip-all-clusters-app.elf \
/tmp/bloat_reports/
- name: Build example Pigweed App
timeout-minutes: 10
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/runner/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, level):
self.daemon = False
self.level = level
self.fd_read, self.fd_write = os.pipe()
self.pipeReader = os.fdopen(self.fd_read)
self.pipeReader = os.fdopen(self.fd_read, errors='replace')
self.start()

def fileno(self):
Expand Down
1 change: 0 additions & 1 deletion src/platform/ESP32/InetPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,3 @@
#ifndef INET_CONFIG_NUM_UDP_ENDPOINTS
#define INET_CONFIG_NUM_UDP_ENDPOINTS CONFIG_NUM_UDP_ENDPOINTS
#endif // INET_CONFIG_NUM_UDP_ENDPOINTS
#define INET_CONFIG_ENABLE_IPV4 1

0 comments on commit 48050d0

Please sign in to comment.