Skip to content

Commit b154b33

Browse files
committed
Swift Androd build
1 parent 1149f52 commit b154b33

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,9 @@ jobs:
6060
- name: Get artifact info
6161
id: paths
6262
run: |
63-
echo "swift-root=$(dirname ${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr)" >> $GITHUB_OUTPUT
64-
echo "swift-path=$(ls ${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr/bin/swift)" >> $GITHUB_OUTPUT
63+
SWIFT_ROOT=$(dirname ${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr)
64+
echo "swift-root=${SWIFT_ROOT}" >> $GITHUB_OUTPUT
65+
echo "swift-path=${SWIFT_ROOT}/usr/bin/swift" >> $GITHUB_OUTPUT
6566
6667
ARTIFACT_PATH=$(realpath ${{ runner.temp }}/swift-android-sdk/products/*.artifactbundle.tar.gz)
6768
echo "artifact-path=${ARTIFACT_PATH}" >> $GITHUB_OUTPUT
@@ -85,7 +86,7 @@ jobs:
8586
- name: Install SDK
8687
run: |
8788
${{ steps.paths.outputs.swift-path }} sdk install ${{ steps.paths.outputs.artifact-path }}
88-
${{ steps.paths.outputs.swift-path }} sdk configure --show-configuration $(${{ steps.paths.outputs.swift-path }} sdk list | head -n 1) x86_64-unknown-linux-android
89+
${{ steps.paths.outputs.swift-path }} sdk configure --show-configuration $(${{ steps.paths.outputs.swift-path }} sdk list | head -n 1) x86_64-unknown-linux-android28
8990
- name: Build swift-algorithms
9091
run: |
9192
cd ${{ runner.temp }}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ done
474474

475475
rm -r ${sysroot_path}/usr/share/{doc,man}
476476
rm -r ${sysroot_path}/usr/{include,lib}/{i686,riscv64}-linux-android
477+
rm -r ${sysroot_path}/usr/lib/swift/clang/lib/linux/*{i[36]86,riscv64}*
477478
rm -r ${sdk_staging}
478479

479480
# validate that some expected paths exist

0 commit comments

Comments
 (0)