Skip to content

Commit a2f57f7

Browse files
committed
Start building the 6.2 devel snapshots on the CI
1 parent 4db3d32 commit a2f57f7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/sdks.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
version: [release, trunk]
13+
version: [release, devel, trunk]
1414
os: [ubuntu-24.04, macos-13]
1515
env:
1616
ANDROID_API_LEVEL: 24
@@ -24,8 +24,8 @@ jobs:
2424
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/releases | grep -m1 swift-6.1 | cut -d- -f2)
2525
SWIFT_TAG="swift-${LATEST_TOOLCHAIN_VERSION}-RELEASE"
2626
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"
2929
else
3030
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-DEV | cut -d- -f7-9)
3131
SWIFT_TAG="swift-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
@@ -133,7 +133,9 @@ jobs:
133133
LSP_BUILD="--sourcekit-lsp"
134134
git apply swift-android-ci-release.patch swift-android-testing-release.patch
135135
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
137139
fi
138140
139141
perl -pi -e 's%String\(cString: getpass%\"fake\" //%' swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
@@ -151,9 +153,6 @@ jobs:
151153
for arch in aarch64 x86_64 armv7; do
152154
SDK_NAME=$(ls | grep swift-${{ matrix.version }}-android-$arch)
153155
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
157156
158157
./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
159158

0 commit comments

Comments
 (0)