Skip to content

Commit 5f4d9bf

Browse files
committed
Add warning when Package.swift contains macros
1 parent 15a740d commit 5f4d9bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/scripts/android/android-emulator-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ if [[ -d Tests ]]; then
120120
cp -a Tests "${STAGING_DIR}"
121121
fi
122122

123+
# warn about macros in packages, as per
124+
# https://github.com/swiftlang/github-workflows/pull/215#discussion_r2621335245
125+
grep -q '\.macro(' Package.swift && log "WARNING: Packages with macros are known to have issues with cross-compilation: https://github.com/swiftlang/swift-package-manager/issues/8094" || true
126+
123127
log "Copy Swift test package to emulator"
124128

125129
ANDROID_TMP_FOLDER="/data/local/tmp/${STAGING_DIR}"

0 commit comments

Comments
 (0)