Skip to content

Commit 18950ec

Browse files
committed
Copy test resources to emulator when running tests
1 parent d1f37df commit 18950ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ jobs:
241241
swiftly run swift build --swift-sdk "${ANDROID_EMULATOR_ARCH_TRIPLE}-unknown-linux-android${ANDROID_API}" --build-tests +"${SWIFT_TOOLCHAIN_VERSION}"
242242
243243
adb push .build/debug/${PACKAGE}PackageTests.xctest /data/local/tmp/
244+
# copy up any test resources
245+
adb push .build/debug/*.resources /data/local/tmp/ || true
244246
245247
# push potential dependent libraries
246248
adb push $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/*/sysroot/usr/lib/${ANDROID_EMULATOR_ARCH_TRIPLE}-linux-android/libc++_shared.so /data/local/tmp/

0 commit comments

Comments
 (0)