diff --git a/swift-ci/sdks/android/README.md b/swift-ci/sdks/android/README.md index 1e57edd1..e7358192 100644 --- a/swift-ci/sdks/android/README.md +++ b/swift-ci/sdks/android/README.md @@ -81,5 +81,9 @@ perform the build locally on an Ubuntu 24.04 machine with all the build prerequisites already installed. This will generate the same artifacts in approximately half the time, and may be suitable to an already containerized envrionment (such as -a GitHub runner). +a GitHub runner). A local build can be run with the +`build-local` script, such as: +``` +./build-local swift-6.2-branch /tmp/android-sdk-devel +``` diff --git a/swift-ci/sdks/android/scripts/build.sh b/swift-ci/sdks/android/scripts/build.sh index db92f02c..eeb4e0fc 100755 --- a/swift-ci/sdks/android/scripts/build.sh +++ b/swift-ci/sdks/android/scripts/build.sh @@ -101,7 +101,7 @@ function declare_package packages+=(${name}) } -declare_package android_sdk \ +declare_package swift_android_sdk \ "Swift SDK for Android" \ "Apache-2.0" "https://swift.org/install" declare_package swift "swift" "Apache-2.0" "https://swift.org" @@ -359,7 +359,6 @@ for arch in $archs; do groupend groupstart "Building libcurl for ${compiler_target_host}" - quiet_pushd ${swift_source_dir}/curl run cmake \ -G Ninja \ -S ${swift_source_dir}/curl \ @@ -393,9 +392,8 @@ for arch in $archs; do header "Installing libcurl for $arch" quiet_pushd ${build_dir}/$arch/curl - run ninja -j$parallel_jobs install + run cmake --install ${build_dir}/${arch}/curl quiet_popd - quiet_popd groupend groupstart "Building Android SDK for ${compiler_target_host}" @@ -505,6 +503,96 @@ cat > info.json < sbom.spdx.json <> sbom.spdx.json <> sbom.spdx.json <> sbom.spdx.json <> sbom.spdx.json <> sbom.spdx.json <> sbom.spdx.json </dev/null 2>&1 git checkout ${BORINGSSL_VERSION} popd >/dev/null 2>&1 groupend - diff --git a/swift-ci/sdks/android/scripts/install-swift.sh b/swift-ci/sdks/android/scripts/install-swift.sh index 0acd9e02..bfe96b02 100755 --- a/swift-ci/sdks/android/scripts/install-swift.sh +++ b/swift-ci/sdks/android/scripts/install-swift.sh @@ -51,4 +51,3 @@ tar -xzf toolchain.tar.gz --directory ${destination} --strip-components=2 chmod -R o+r ${destination}/lib/swift popd >/dev/null -