Skip to content

Commit a40f694

Browse files
committed
Start building the 6.3 devel snapshots on the CI
1 parent 6524338 commit a40f694

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

.github/workflows/sdks.yml

Lines changed: 7 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, devel, trunk]
13+
version: [devel] #, trunk]
1414
os: [ubuntu-24.04, macos-15-intel]
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.2 | 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.2-DEV | cut -d- -f8-10)
28-
SWIFT_TAG="swift-6.2-DEVELOPMENT-SNAPSHOT-${LATEST_TOOLCHAIN_VERSION}-a"
27+
LATEST_TOOLCHAIN_VERSION=$(curl -sL https://github.com/apple/swift/tags | grep -m1 swift-6.3-DEV | cut -d- -f8-10)
28+
SWIFT_TAG="swift-6.3-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"
@@ -128,11 +128,11 @@ jobs:
128128
129129
git apply -C1 swift-android.patch swift-android-ci.patch
130130
BUILD_FLAG="--foundation-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=''"
131-
if ${{ matrix.version == 'trunk' }}; then
132-
git apply swift-android-trunk-spawn.patch
133-
BUILD_FLAG+=" --libdispatch-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=''"
131+
if ${{ matrix.version == 'release' }}; then
132+
git apply swift-android-ci-release.patch swift-android-release.patch
134133
else
135-
git apply swift-android-ci-except-trunk.patch swift-android-except-trunk.patch
134+
git apply swift-android-spawn.patch
135+
BUILD_FLAG+=" --libdispatch-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=''"
136136
fi
137137
138138
perl -pi -e 's%33%24%' $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/execinfo.h

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Next, apply two patches from this repo to the Swift source, which make
146146
modifications for NDK 27 and [the Foundation rewrite in Swift 6 that was merged
147147
last summer](https://www.swift.org/blog/foundation-preview-now-available/):
148148
```
149-
git apply swift-android.patch swift-android-except-trunk.patch
149+
git apply swift-android.patch swift-android-release.patch
150150
```
151151

152152
After making sure [needed build tools like python 3, CMake, and ninja](https://github.com/swiftlang/swift/blob/release/6.2/docs/HowToGuides/GettingStarted.md#linux)

get-packages-and-swift-source.swift

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ let extraSwiftRepos = ["swift-llbuild", "swift-package-manager", "swift-driver",
1717
"swift-certificates", "swift-asn1", "swift-toolchain-sqlite", "swift-build"]
1818
let appleRepos = ["swift-argument-parser", "swift-crypto", "swift-system", "swift-collections", "swift-certificates", "swift-asn1"]
1919
let renameRepos = ["swift-llbuild" : "llbuild", "swift-package-manager" : "swiftpm"]
20-
var repoTags = ["swift-system" : "1.5.0", "swift-collections" : "1.1.3", "swift-asn1" : "1.0.0",
21-
"swift-certificates" : "1.0.1", "swift-argument-parser" : "1.4.0",
22-
"swift-crypto" : "3.0.0", "swift-toolchain-sqlite" : "1.0.1"]
20+
var repoTags = ["swift-system" : "1.5.0", "swift-collections" : "1.1.6", "swift-asn1" : "1.3.2",
21+
"swift-certificates" : "1.10.1", "swift-argument-parser" : "1.5.1",
22+
"swift-crypto" : "3.12.5", "swift-toolchain-sqlite" : "1.0.1"]
2323
if ProcessInfo.processInfo.environment["BUILD_SWIFT_PM"] != nil {
2424
swiftRepos += extraSwiftRepos
2525
termuxPackages += ["ncurses", "libsqlite"]
@@ -55,15 +55,13 @@ if tagExtract.numberOfMatches(in: SWIFT_TAG, range: tagRange) == 1 {
5555

5656
if swiftBranch == "RELEASE" {
5757
sdkDir = "swift-release-android-\(ANDROID_ARCH)-24-sdk"
58+
repoTags["swift-collections"] = "1.1.3"
59+
repoTags["swift-argument-parser"] = "1.4.0"
60+
repoTags["swift-crypto"] = "3.0.0"
61+
repoTags["swift-certificates"] = "1.0.1"
62+
repoTags["swift-asn1"] = "1.0.0"
5863
} else {
5964
sdkDir = "swift-\(swiftVersion == "" ? "trunk" : "devel")-android-\(ANDROID_ARCH)-\(swiftSnapshotDate)-24-sdk"
60-
if swiftVersion == "" {
61-
repoTags["swift-collections"] = "1.1.6"
62-
repoTags["swift-argument-parser"] = "1.5.1"
63-
repoTags["swift-crypto"] = "3.12.5"
64-
repoTags["swift-certificates"] = "1.10.1"
65-
repoTags["swift-asn1"] = "1.3.2"
66-
}
6765
}
6866

6967
// takes the name of a command-line executable and the arguments to pass to it
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)