Skip to content

Commit 797c594

Browse files
committed
1 parent 7d49998 commit 797c594

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/pull_request.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
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:
@@ -48,6 +48,7 @@ jobs:
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

swift-ci/sdks/android/build-local

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ fi
6969

7070
mkdir -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

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ script_dir=$(dirname -- "${BASH_SOURCE[0]}")
170170
resource_dir=$(realpath "${script_dir}/../resources")
171171
patches_dir="${resource_dir}/patches"
172172

173-
ls -la ${patches_dir}
174-
175173
# Find the version numbers of the various dependencies
176174
function describe {
177175
pushd $1 >/dev/null 2>&1

0 commit comments

Comments
 (0)