Skip to content

Commit 01d2197

Browse files
committed
Only apply patches for 16 KB pages and CMake toolchain file for Testing to non-trunk branches on the CI
1 parent a76714c commit 01d2197

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/sdks.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,27 +124,26 @@ jobs:
124124
125125
ANDROID_ARCH=aarch64 BUILD_SWIFT_PM=1 ${TOOLCHAIN}/bin/swift get-packages-and-swift-source.swift
126126
127-
git apply -C1 swift-android.patch swift-android-ci.patch swift-android-16k-pages.patch
127+
git apply -C1 swift-android.patch swift-android-ci.patch
128128
BUILD_FLAG="--foundation-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=''"
129129
if ${{ matrix.version == 'release' }}; then
130130
perl -pi -e 's%r26%ndk/27%' swift/stdlib/cmake/modules/AddSwiftStdlib.cmake
131131
BUILD_FLAG+=" --build-swift-tools=0"
132132
LSP_BUILD="--sourcekit-lsp"
133-
git apply swift-android-ci-release.patch swift-android-testing-release.patch
133+
git apply swift-android-ci-release.patch swift-android-testing-release.patch swift-android-16k-pages.patch swift-android-testing.patch
134134
else
135135
if ${{ matrix.version == 'trunk' }}; then
136136
git apply swift-android-trunk-libdispatch.patch
137137
BUILD_FLAG+=" --libdispatch-cmake-options=-DCMAKE_SHARED_LINKER_FLAGS=''"
138138
else
139-
git apply swift-android-ci-devel.patch swift-android-devel.patch
139+
git apply swift-android-ci-devel.patch swift-android-devel.patch swift-android-16k-pages.patch swift-android-testing.patch
140140
fi
141141
git apply -C2 swift-android-ci-except-release.patch
142142
BUILD_FLAG+=" --cross-compile-build-swift-tools=0"
143143
SDK_NAME=$(ls | grep swift-${{ matrix.version }}-android-aarch64)
144144
perl -pi -e 's%33%24%' $ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/execinfo.h
145145
fi
146146
147-
git apply swift-android-testing.patch
148147
perl -pi -e 's%String\(cString: getpass%\"fake\" //%' swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
149148
perl -pi -e "s%swift/android',%swift/android', '-Xlinker', '-landroid-spawn',%" sourcekit-lsp/Utilities/build-script-helper.py
150149
VERSION="$(echo ${{ steps.version.outputs.tag }} | cut -f1,2 -d-)-${{ matrix.version }}"

0 commit comments

Comments
 (0)