10
10
strategy :
11
11
fail-fast : false
12
12
matrix :
13
- version : [release, trunk]
13
+ version : [release, devel, trunk]
14
14
os : [ubuntu-24.04, macos-13]
15
15
env :
16
16
ANDROID_API_LEVEL : 24
24
24
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/releases | grep -m1 swift-6.1 | cut -d- -f2)
25
25
SWIFT_TAG="swift-${LATEST_TOOLCHAIN_VERSION}-RELEASE"
26
26
elif [ ${{ matrix.version }} = 'devel' ]; then
27
- LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-6.1 -DEV | cut -d- -f8-10)
28
- SWIFT_TAG="swift-6.1 -DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
27
+ LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-6.2 -DEV | cut -d- -f8-10)
28
+ SWIFT_TAG="swift-6.2 -DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
29
29
else
30
30
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-DEV | cut -d- -f7-9)
31
31
SWIFT_TAG="swift-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
@@ -133,7 +133,9 @@ jobs:
133
133
LSP_BUILD="--sourcekit-lsp"
134
134
git apply swift-android-ci-release.patch swift-android-testing-release.patch
135
135
else
136
- git apply swift-android-ci-except-release.patch swift-android-testing-except-release.patch
136
+ git apply -C2 swift-android-ci-except-release.patch swift-android-testing-except-release.patch
137
+ SDK_NAME=$(ls | grep swift-${{ matrix.version }}-android-aarch64)
138
+ cp $SDK_NAME/usr/include/execinfo.h $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
137
139
fi
138
140
139
141
perl -pi -e 's%String\(cString: getpass%\"fake\" //%' swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
@@ -151,9 +153,6 @@ jobs:
151
153
for arch in aarch64 x86_64 armv7; do
152
154
SDK_NAME=$(ls | grep swift-${{ matrix.version }}-android-$arch)
153
155
SDK=`pwd`/$SDK_NAME
154
- if [ ${{ matrix.version }} = 'trunk' ]; then
155
- cp $SDK/usr/include/execinfo.h $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include
156
- fi
157
156
158
157
./swift/utils/build-script -RA --skip-build-cmark --build-llvm=0 --android --android-ndk $ANDROID_NDK_HOME --android-arch $arch --android-api-level $ANDROID_API_LEVEL --build-swift-tools=0 --native-swift-tools-path=${TOOLCHAIN}/bin --native-clang-tools-path=${TOOLCHAIN}/bin --cross-compile-hosts=android-$arch --cross-compile-deps-path=$SDK --skip-local-build --build-swift-static-stdlib --xctest --install-swift --install-libdispatch --install-foundation --install-xctest --install-destdir=$SDK --swift-install-components='compiler;clang-resource-dir-symlink;license;stdlib;sdk-overlay' --cross-compile-append-host-target-to-destdir=False -b --install-llbuild --swift-testing --install-swift-testing -p $LSP_BUILD
159
158
0 commit comments