File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 9494
9595 ARTIFACT_PATH=$(realpath ${WORKDIR}/products/*.artifactbundle.tar.gz)
9696 echo "artifact-path=${ARTIFACT_PATH}" >> $GITHUB_OUTPUT
97- echo "sdk-id=x86_64-unknown-linux-android28 " >> $GITHUB_OUTPUT
97+ echo "sdk-id=x86_64-unknown-linux-android23 " >> $GITHUB_OUTPUT
9898
9999 ARTIFACT_EXT=".artifactbundle.tar.gz"
100100 ARTIFACT_NAME="$(basename ${ARTIFACT_PATH} ${ARTIFACT_EXT})"
@@ -179,3 +179,18 @@ jobs:
179179 package-path : swift-algorithms
180180 installed-sdk : ${{ steps.info.outputs.sdk-id }}
181181 installed-swift : ${{ steps.info.outputs.swift-root }}
182+
183+ - name : Checkout swift-system
184+ if : ${{ matrix.runner != 'self-hosted' }}
185+ uses : actions/checkout@v4
186+ with :
187+ repository : apple/swift-system
188+ path : swift-system
189+ - name : Test swift-system
190+ if : ${{ matrix.runner != 'self-hosted' }}
191+ uses : skiptools/swift-android-action@main
192+ with :
193+ package-path : swift-system
194+ installed-sdk : ${{ steps.info.outputs.sdk-id }}
195+ installed-swift : ${{ steps.info.outputs.swift-root }}
196+
Original file line number Diff line number Diff line change 1818TARGET_ARCHS=${TARGET_ARCHS:- aarch64,x86_64,armv7}
1919
2020ANDROID_NDK_VERSION=android-ndk-r27d
21- ANDROID_API=24
21+ ANDROID_API=23
2222
2323BASEPATH=$( dirname $( realpath $0 ) )
2424cd ${BASEPATH}
Original file line number Diff line number Diff line change 1818TARGET_ARCHS=${TARGET_ARCHS:- aarch64,x86_64,armv7}
1919
2020ANDROID_NDK_VERSION=android-ndk-r27d
21- ANDROID_API=24
21+ ANDROID_API=23
2222
2323BASEPATH=$( dirname $( realpath $0 ) )
2424cd ${BASEPATH}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ declare_package boringssl "boringssl" "OpenSSL AND ISC AND MIT" \
128128android_sdk_version=0.1
129129sdk_name=
130130archs=aarch64,armv7,x86_64
131- android_api=24
131+ android_api=23
132132build_type=Release
133133parallel_jobs=$(( $(nproc -- all) + 2 ))
134134source_dir=
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ perl -pi -g -we "s#(call rm ... \".\{LIBDISPATCH_BUILD_DIR\}\"\n(\s+)fi\n)#\1\2i
173173# disable backtrace() for Android (needs either API33+ or libandroid-execinfo, or to manually add in backtrace backport)
174174perl -pi -e ' s;os\(Android\);os\(AndroidDISABLED\);g' swift-project/swift-testing/Sources/Testing/SourceAttribution/Backtrace.swift
175175
176- # Disable posix_spawnattr_* calls for Android API 24
176+ # Disable posix_spawnattr_* calls for Android API 23
177177perl -pi -e ' s;try _throwIfPosixError\(posix_spawnattr_init;//try _throwIfPosixError\(posix_spawnattr_init;g' swift-project/swift-corelibs-foundation/Sources/Foundation/Process.swift
178178perl -pi -e ' s;try _throwIfPosixError\(posix_spawnattr_setflags;//try _throwIfPosixError\(posix_spawnattr_setflags;g' swift-project/swift-corelibs-foundation/Sources/Foundation/Process.swift
179179perl -pi -e ' s;posix_spawnattr_destroy;//posix_spawnattr_destroy;g' swift-project/swift-corelibs-foundation/Sources/Foundation/Process.swift
You can’t perform that action at this time.
0 commit comments