Skip to content

Commit 01d008b

Browse files
committed
1 parent d103d49 commit 01d008b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
working-directory: swift-ci/sdks/android
6868
run: ls resources/patches/
6969
- name: Build Android SDK in Docker
70+
if: false
7071
continue-on-error: true
7172
working-directory: swift-ci/sdks/android
7273
run: |

swift-ci/sdks/android/scripts/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ fi
168168

169169
script_dir=$(dirname -- "${BASH_SOURCE[0]}")
170170
resource_dir="${script_dir}/../resources"
171+
patches_dir=$(realpath "${script_dir}/../patches")
172+
ls -la ${patches_dir}
171173

172174
# Find the version numbers of the various dependencies
173175
function describe {
@@ -241,8 +243,7 @@ function run() {
241243
header "Patching Sources"
242244

243245
quiet_pushd ${source_dir}
244-
PATCHDIR="${resource_dir}/patches"
245-
patch=$(realpath "${PATCHDIR}/swift-android.patch")
246+
patch="${patches_dir}/swift-android.patch"
246247

247248
# patch the patch, which seems to only be needed for an API less than 28
248249
# https://github.com/finagolfin/swift-android-sdk/blob/main/swift-android.patch#L110
@@ -261,9 +262,9 @@ quiet_pushd ${source_dir}
261262
fi
262263

263264
if [ "${BUILD_VERSION}" = 'release' ]; then
264-
testing_patch=$(realpath "${PATCHDIR}/swift-android-testing-release.patch")
265+
testing_patch="${patches_dir}/swift-android-testing-release.patch"
265266
else
266-
testing_patch=$(realpath "${PATCHDIR}/swift-android-testing-except-release.patch")
267+
testing_patch="${patches_dir}/swift-android-testing-except-release.patch"
267268
fi
268269

269270
if git apply --reverse --check "$testing_patch" >/dev/null 2>&1; then

0 commit comments

Comments
 (0)