Skip to content

Commit 0171352

Browse files
committed
Revert --static-swift-stdlib flag when building tests because there is no static XCTest library
1 parent a4a759f commit 0171352

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,6 @@ jobs:
212212
adb push $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/*/sysroot/usr/lib/${ANDROID_EMULATOR_ARCH_TRIPLE}-linux-android/libc++_shared.so /data/local/tmp/
213213
adb shell /data/local/tmp/hello
214214
215-
- name: Install testing prerequisites on Android Emulator
216-
# not needed when building with --static-swift-stdlib
217-
if: false
218-
run: |
219-
cd ~/Library/org.swift.swiftpm || cd ${XDG_CONFIG_HOME}/swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
220-
# add necessary dependencies
221-
adb push swift-sdks/${SWIFT_ANDROID_SDK_VERSION}*.artifactbundle/swift-android/swift-resources/usr/lib/swift-${ANDROID_EMULATOR_ARCH_TRIPLE}/android/*.so /data/local/tmp/
222-
223-
adb shell ls /data/local/tmp/
224-
225-
cd -
226-
227215
- name: Create run-tests script
228216
run: |
229217
cat > run-tests.sh << "EOF"
@@ -234,7 +222,7 @@ jobs:
234222
git clone https://github.com/${ORG}/${PACKAGE}
235223
cd ${PACKAGE}
236224
237-
swiftly run swift build --swift-sdk "${ANDROID_EMULATOR_ARCH_TRIPLE}-unknown-linux-android${ANDROID_API}" --build-tests --static-swift-stdlib +"${SWIFT_TOOLCHAIN_VERSION}"
225+
swiftly run swift build --swift-sdk "${ANDROID_EMULATOR_ARCH_TRIPLE}-unknown-linux-android${ANDROID_API}" --build-tests +"${SWIFT_TOOLCHAIN_VERSION}"
238226
239227
adb push .build/debug/${PACKAGE}PackageTests.xctest /data/local/tmp/
240228
# copy up any test resources
@@ -245,9 +233,9 @@ jobs:
245233
246234
# Since we are building with --static-swift-stdlib, we don't
247235
# need to copy any of the other libraries
248-
#cd ~/Library/org.swift.swiftpm || cd ${XDG_CONFIG_HOME}/swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
249-
#adb push swift-sdks/${SWIFT_ANDROID_SDK_VERSION}*.artifactbundle/swift-android/swift-resources/usr/lib/swift-${ANDROID_EMULATOR_ARCH_TRIPLE}/android/*.so /data/local/tmp/
250-
#cd -
236+
cd ~/Library/org.swift.swiftpm || cd ${XDG_CONFIG_HOME}/swiftpm || cd ~/.local/swiftpm || cd ~/.swiftpm
237+
adb push swift-sdks/${SWIFT_ANDROID_SDK_VERSION}*.artifactbundle/swift-android/swift-resources/usr/lib/swift-${ANDROID_EMULATOR_ARCH_TRIPLE}/android/*.so /data/local/tmp/
238+
cd -
251239
252240
adb shell ls /data/local/tmp/
253241

0 commit comments

Comments
 (0)