File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 3737 run : ./build
3838
3939 android-build :
40- name : Build Android ${{ matrix.swift-version }} ${{ matrix.arch }} SDK
40+ name : Build Android ${{ matrix.build-type }} ${{ matrix. swift-version }} ${{ matrix.arch }} SDK
4141 strategy :
4242 fail-fast : false
4343 matrix :
4848 # build both the quick (x86_64) and complete (aarch64,x86_64,armv7) SDKs
4949 arch : ['x86_64', '']
5050 swift-version : ['release', 'devel', 'trunk']
51+ build-type : ['docker', 'local']
5152 runs-on : ubuntu-24.04
5253 steps :
5354 - name : Free Disk Space
@@ -67,13 +68,16 @@ jobs:
6768 working-directory : swift-ci/sdks/android
6869 run : ls resources/patches/
6970 - name : Install Dependencies
71+ if : ${{ matrix.build-type == 'local' }}
7072 run : |
7173 sudo apt install -q ninja-build patchelf
72- - name : Build Android SDK
74+ - name : Build Android SDK (Local)
75+ if : ${{ matrix.build-type == 'local' }}
7376 working-directory : swift-ci/sdks/android
7477 run : |
7578 BUILD_VERSION=${{ matrix.swift-version }} TARGET_ARCHS=${{ matrix.arch }} ./build-local
76- - name : Build Android SDK in Docker
79+ - name : Build Android SDK (Docker)
80+ if : ${{ matrix.build-type == 'docker' }}
7781 working-directory : swift-ci/sdks/android
7882 run : |
7983 BUILD_VERSION=${{ matrix.swift-version }} TARGET_ARCHS=${{ matrix.arch }} ./build
Original file line number Diff line number Diff line change 6969
7070mkdir -p ${SDKROOT} /products
7171
72- # Check-out the sources
73- if [[ ! -d ${SDKROOT} /src ]] ; then
74- scripts/fetch-source.sh --source-dir ${SDKROOT} /src --swift-tag ${SWIFT_TAG}
75- fi
72+ ./scripts/fetch-source.sh --source-dir ${SDKROOT} /src --swift-tag ${SWIFT_TAG}
73+
74+ echo " CHECKING SOURCES: ${SDKROOT} /src"
75+ ls -la ${SDKROOT} /src
7676
7777./scripts/build.sh --products-dir ${SDKROOT} /products --source-dir ${SDKROOT} /src --build-dir ${SDKROOT} /build --ndk-home ${ANDROID_NDK_HOME} --android-api ${ANDROID_API} --host-toolchain ${HOST_TOOLCHAIN} --archs ${TARGET_ARCHS} ${@ }
7878
Original file line number Diff line number Diff line change @@ -170,8 +170,6 @@ script_dir=$(dirname -- "${BASH_SOURCE[0]}")
170170resource_dir=$( realpath " ${script_dir} /../resources" )
171171patches_dir=" ${resource_dir} /patches"
172172
173- ls -la ${patches_dir}
174-
175173# Find the version numbers of the various dependencies
176174function describe {
177175 pushd $1 > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments