Skip to content

Commit 7bfc734

Browse files
committed
1 parent d17d5f2 commit 7bfc734

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

swift-ci/sdks/android/build-docker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ source ./scripts/toolchain-vars.sh
3636
$DOCKER build --build-arg OS_ARCH_SUFFIX=$OS_ARCH_SUFFIX --build-arg SWIFT_TOOLCHAIN_URL=$SWIFT_TOOLCHAIN_URL --build-arg ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION -t swift-android .
3737

3838
# Check-out and patch the sources
39-
./scripts/fetch-source.sh --source-dir source --swift-tag ${SWIFT_TAG}
40-
./scripts/patch-sources.sh source
39+
./scripts/fetch-source.sh --source-dir ${PWD}/source --swift-tag ${SWIFT_TAG}
40+
./scripts/patch-sources.sh ${PWD}/source
4141

4242
mkdir -p products
4343

swift-ci/sdks/android/scripts/patch-sources.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,16 @@ for patch in "$swift_android_patch" "$testing_patch" "$dispatch_patch"; do
5555
fi
5656

5757
echo "applying patch $patch in $PWD"
58+
git apply -C1 "$patch"
5859

59-
if git apply -C1 --reverse --check "$patch" >/dev/null 2>&1 ; then
60-
echo "already patched"
61-
elif git apply -C1 "$patch" ; then
62-
echo "done"
63-
else
64-
echo "failed to apply patch $patch in $PWD"
65-
exit 1
66-
fi
60+
#if git apply -C1 --reverse --check "$patch" >/dev/null 2>&1 ; then
61+
# echo "already patched"
62+
#elif git apply -C1 "$patch" ; then
63+
# echo "done"
64+
#else
65+
# echo "failed to apply patch $patch in $PWD"
66+
# exit 1
67+
#fi
6768
done
6869

6970
perl -pi -e 's%String\(cString: getpass%\"fake\" //%' swiftpm/Sources/PackageRegistryCommand/PackageRegistryCommand+Auth.swift

0 commit comments

Comments
 (0)