File tree Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Original file line number Diff line number Diff line change 67
67
echo "WORKDIR=${{ runner.temp }}/swift-android-sdk" >> $GITHUB_ENV
68
68
- name : Checkout repository
69
69
uses : actions/checkout@v4
70
- with :
71
- submodules : ' true'
72
70
- name : Build Android SDK (Local)
73
71
if : ${{ matrix.build-type == 'local' }}
74
72
working-directory : swift-ci/sdks/android
Original file line number Diff line number Diff line change 1
- [submodule "swift-ci/sdks/android/resources/patches "]
2
- path = swift-ci/sdks/android/resources/patches
3
- url = https://github.com/swift-android-sdk/swift-android-sdk
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 91
91
if [[ -z " ${BORINGSSL_VERSION} " ]]; then
92
92
BORINGSSL_VERSION=fips-20220613
93
93
fi
94
+ if [[ -z " ${SWIFT_ANDROID_PATCHES_VERSION} " ]]; then
95
+ SWIFT_ANDROID_PATCHES_VERSION=main
96
+ fi
94
97
95
98
clone_with_ssh=false
96
99
while [ " $# " -gt 0 ]; do
@@ -139,7 +142,7 @@ mkdir -p swift-project
139
142
groupstart " Fetching Swift"
140
143
pushd swift-project > /dev/null
141
144
142
- [[ -d swift ]] || git clone ${github} apple /swift.git
145
+ [[ -d swift ]] || git clone ${github} swiftlang /swift.git
143
146
cd swift
144
147
145
148
# Get its dependencies
@@ -181,3 +184,10 @@ git checkout ${BORINGSSL_VERSION}
181
184
popd > /dev/null 2>&1
182
185
groupend
183
186
187
+ # Fetch BoringSSL
188
+ groupstart " Fetching Patches"
189
+ [[ -d swift-android-patches ]] || git clone https://github.com/swift-android-sdk/swift-android-sdk swift-android-patches
190
+ pushd swift-android-patches > /dev/null 2>&1
191
+ git checkout ${SWIFT_ANDROID_PATCHES_VERSION}
192
+ popd > /dev/null 2>&1
193
+ groupend
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
source_dir=$1
6
-
7
6
if [[ ! -d " ${source_dir} " ]]; then
8
7
echo " $0 : source_dir ${source_dir} does not exist"
9
8
exit 1
10
9
fi
11
10
12
- script_dir=$( dirname -- " ${BASH_SOURCE[0]} " )
13
- resource_dir=$( realpath " ${script_dir} /../resources" )
14
- patches_dir=" ${resource_dir} /patches"
15
-
11
+ patches_dir=" ${source_dir} /swift-android-patches"
16
12
if [[ ! -d " ${patches_dir} " ]]; then
17
13
echo " $0 : patches_dir ${patches_dir} does not exist"
18
14
exit 1
21
17
cd ${source_dir} /swift-project
22
18
swift_android_patch=" ${patches_dir} /swift-android.patch"
23
19
24
- ls -la swift/utils/build-script-impl
25
- ls -la ${swift_android_patch}
26
- ls -la swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift
27
-
28
20
# patch the patch, which seems to only be needed for an API less than 28
29
21
# https://github.com/finagolfin/swift-android-sdk/blob/main/swift-android.patch#L110
30
22
perl -pi -e ' s/#if os\(Windows\)/#if os\(Android\)/g' $swift_android_patch
You can’t perform that action at this time.
0 commit comments