Skip to content

Commit

Permalink
Fix android full build in CI (#22486)
Browse files Browse the repository at this point in the history
* Split out android builds to not use as much space during building

* Ensure we can test android builds with act

* Since we use checkout_submodules, submodules are not needed on the other checkout

* Add some documentation on using act to test

* Fix ENOBUFS being undefined when compiling tv-casting-app on arm
  • Loading branch information
andy31415 authored Sep 8, 2022
1 parent e74bb94 commit 7475f00
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 5 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/full-android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,23 @@ jobs:

steps:
- uses: Wandalen/[email protected]
if: ${{ !env.ACT }}
name: Checkout
with:
action: actions/checkout@v3
with: |
submodules: true
token: ${{ github.token }}
attempt_limit: 3
attempt_delay: 2000
# To use act like:
# act -j full_android
#
# Note you likely still need to have non submodules setup for the
# local machine, like:
# git submodule deinit --all
- uses: actions/checkout@v3
if: ${{ env.ACT }}
name: Checkout (ACT for local build)
- name: Checkout submodules
run: scripts/checkout_submodules.py --shallow --platform android
- name: Bootstrap
Expand All @@ -61,16 +70,38 @@ jobs:
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build Android CHIPTool and CHIPTest (ARM)
- name: Build Android arm-chip-tool
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm-*' build"
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-chip-tool build"
- name: Clean out build output
run: rm -rf ./out
- name: Build Android CHIPTool and CHIPTest (ARM64)
- name: Build Android arm-tv-casting-app
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target-glob 'android-arm64-*' build"
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-tv-casting-app build"
- name: Clean out build output
run: rm -rf ./out
- name: Build Android arm-tv-server
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm-tv-server build"
- name: Clean out build output
run: rm -rf ./out
- name: Build Android arm64-tv-casting-app
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-tv-casting-app build"
- name: Clean out build output
run: rm -rf ./out
- name: Build Android arm64-tv-server
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-tv-server build"
- name: Build Android arm64-chip-tool
run: |
./scripts/run_in_build_env.sh \
"./scripts/build/build_examples.py --no-log-timestamps --target android-arm64-chip-tool build"
- name: Run Android build rule tests
run: |
./scripts/run_in_build_env.sh \
Expand Down
1 change: 1 addition & 0 deletions src/messaging/ReliableMessageMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
*/

#include <errno.h>
#include <inttypes.h>

#include <messaging/ReliableMessageMgr.h>
Expand Down

0 comments on commit 7475f00

Please sign in to comment.