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 37
37
run : ./build
38
38
39
39
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
41
41
strategy :
42
42
fail-fast : false
43
43
matrix :
48
48
# build both the quick (x86_64) and complete (aarch64,x86_64,armv7) SDKs
49
49
arch : ['x86_64', '']
50
50
swift-version : ['release', 'devel', 'trunk']
51
+ build-type : ['docker', 'local']
51
52
runs-on : ubuntu-24.04
52
53
steps :
53
54
- name : Free Disk Space
@@ -67,13 +68,16 @@ jobs:
67
68
working-directory : swift-ci/sdks/android
68
69
run : ls resources/patches/
69
70
- name : Install Dependencies
71
+ if : ${{ matrix.build-type == 'local' }}
70
72
run : |
71
73
sudo apt install -q ninja-build patchelf
72
- - name : Build Android SDK
74
+ - name : Build Android SDK (Local)
75
+ if : ${{ matrix.build-type == 'local' }}
73
76
working-directory : swift-ci/sdks/android
74
77
run : |
75
78
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' }}
77
81
working-directory : swift-ci/sdks/android
78
82
run : |
79
83
BUILD_VERSION=${{ matrix.swift-version }} TARGET_ARCHS=${{ matrix.arch }} ./build
Original file line number Diff line number Diff line change 69
69
70
70
mkdir -p ${SDKROOT} /products
71
71
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
76
76
77
77
./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} ${@ }
78
78
Original file line number Diff line number Diff line change @@ -170,8 +170,6 @@ script_dir=$(dirname -- "${BASH_SOURCE[0]}")
170
170
resource_dir=$( realpath " ${script_dir} /../resources" )
171
171
patches_dir=" ${resource_dir} /patches"
172
172
173
- ls -la ${patches_dir}
174
-
175
173
# Find the version numbers of the various dependencies
176
174
function describe {
177
175
pushd $1 > /dev/null 2>&1
You can’t perform that action at this time.
0 commit comments