Skip to content

Add testing for swift-corelibs-foundation-android-test repo #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,15 @@ jobs:
cd sa
~/sedinplace.sh "s%url: .*$%path: \"../swift-numerics\"),%" Package.swift
${TOOLCHAIN}/bin/swift build --build-tests --destination ${ARCH_JSON} -Xlinker -rpath -Xlinker \$ORIGIN/lib/swift/android
- name: Get swift-corelibs-foundation-android-test package
uses: actions/checkout@v4
with:
repository: marcprux/swift-corelibs-foundation-android-test
path: scfat
- name: Build swift-corelibs-foundation-android-test package
run: |
cd scfat
${TOOLCHAIN}/bin/swift build --build-tests --destination ${ARCH_JSON} -Xlinker -rpath -Xlinker \$ORIGIN/lib/swift/android
- name: Get cached Termux debug app for NIO tests
if: ${{ matrix.arch == 'x86_64' }}
id: cache-termux
Expand Down Expand Up @@ -452,6 +461,9 @@ jobs:
cp sa/.build/$TARGET/debug/swift-algorithmsPackageTests.xctest pack
echo 'adb shell /data/local/tmp/pack/swift-algorithmsPackageTests.xctest' >> ~/test-toolchain.sh

cp -r scfat/.build/$TARGET/debug/swift-corelibs-foundationPackageTests.xctest scfat/.build/$TARGET/debug/swift-corelibs-foundation_TestFoundation.resources pack
echo 'adb shell /data/local/tmp/pack/swift-corelibs-foundationPackageTests.xctest' >> ~/test-toolchain.sh

mkdir pack/crypto-vectors pack/swift-crypto_CryptoTests.resources
cp swift-crypto/Tests/Test\ Vectors/* swift-crypto/Tests/_CryptoExtrasVectors/* pack/crypto-vectors
cp swift-crypto/Tests/CryptoTests/HPKE/hpke-test-vectors.json pack/swift-crypto_CryptoTests.resources
Expand Down
Loading