Skip to content

Commit e619ba2

Browse files
committed
Clear ANDROID_NDK_ROOT environment due to swiftlang/swift-driver#1879
1 parent 54759e2 commit e619ba2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/scripts/install-and-build-with-sdk.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,11 @@ build() {
666666

667667
log "Running: $build_command"
668668

669+
# clear the ANDROID_NDK_ROOT environment variable if it is set
670+
# due to https://github.com/swiftlang/swift-driver/pull/1879
671+
# otherwise build error: missing required module 'SwiftAndroid'
672+
export ANDROID_NDK_ROOT=""
673+
669674
if eval "$build_command"; then
670675
log "✅ Swift build with Android Swift SDK completed successfully"
671676
else

0 commit comments

Comments
 (0)