-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix android full build in CI (#22486)
* 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
Showing
2 changed files
with
37 additions
and
5 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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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 \ | ||
|
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
* | ||
*/ | ||
|
||
#include <errno.h> | ||
#include <inttypes.h> | ||
|
||
#include <messaging/ReliableMessageMgr.h> | ||
|