Skip to content

Commit 738a441

Browse files
committed
Selectively enable tests for Swift versions
1 parent 728a6c3 commit 738a441

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
skip android sdk install --version ${{ matrix.swift }}
2525
# https://github.com/swiftlang/swift-driver/pull/1879
2626
echo 'ANDROID_NDK_ROOT=""' >> $GITHUB_ENV
27+
echo 'SWIFT_SDK_VERSION=${{ matrix.swift }}' >> $GITHUB_ENV
2728
- name: "Test Swift Package on Android (Skip)"
2829
uses: reactivecircus/android-emulator-runner@v2
2930
with:

android-fetchurl/run.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/bin/sh -ex
2-
skip android build --static-swift-stdlib
2+
if [ "${SWIFT_SDK_VERSION}" = "6.1" ]; then
3+
# clang: error: no such file or directory: '/Users/runner/Library/org.swift.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/lib/swift_static/android/x86_64/swiftrt.o'
4+
echo "Skipping skip android build --static-swift-stdlib for ${SWIFT_SDK_VERSION}"
5+
else
6+
skip android build --static-swift-stdlib
7+
fi
8+
39
skip android run android-fetchurl http://example.org https://example.org
File renamed without changes.

0 commit comments

Comments
 (0)