Skip to content

Commit 86ae847

Browse files
committed
[.github] fix(ci): tolerate sdkmanager license pipe exit in workflows
- Prevent CI failures caused by yes returning SIGPIPE under pipefail. - Keep automatic Android SDK license acceptance intact. - Apply the same robust behavior to build-check and release workflows.
1 parent 4e94334 commit 86ae847

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Install NDK
2424
run: |
25-
yes | sdkmanager --licenses >/dev/null
25+
yes | sdkmanager --licenses >/dev/null || true
2626
sdkmanager "ndk;${NDK_VERSION}"
2727
2828
- name: Build all ABIs

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
shell: bash
103103
run: |
104104
set -euo pipefail
105-
yes | sdkmanager --licenses >/dev/null
105+
yes | sdkmanager --licenses >/dev/null || true
106106
sdkmanager "ndk;${NDK_VERSION}" "cmake;3.22.1"
107107
108108
- name: Build Native Binaries

0 commit comments

Comments
 (0)