File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 88
88
# when building in a Docker container, we don't have a host toolchain
89
89
# locally, but we need one in order to run the SDK validation tests
90
90
source ./scripts/toolchain-vars.sh
91
+ export SWIFT_TOOLCHAIN_URL=${SWIFT_TOOLCHAIN_URL}
91
92
mkdir -p ${{ runner.temp }}/swift-android-sdk/host-toolchain
92
93
./scripts/install-swift.sh ${{ runner.temp }}/swift-android-sdk/host-toolchain/swift
93
94
${{ runner.temp }}/swift-android-sdk/host-toolchain/swift/bin/swift --version
96
97
shell : bash
97
98
run : |
98
99
set -ex
99
- ls -la ${{ runner.temp }}
100
- ls -la ${{ runner.temp }}/swift-android-sdk
101
- ls -la ${{ runner.temp }}/swift-android-sdk/products
102
100
SWIFT_ROOT=$(dirname ${{ runner.temp }}/swift-android-sdk/host-toolchain/*/usr)
103
101
echo "swift-root=${SWIFT_ROOT}" >> $GITHUB_OUTPUT
104
102
echo "swift-path=${SWIFT_ROOT}/usr/bin/swift" >> $GITHUB_OUTPUT
@@ -143,7 +141,7 @@ jobs:
143
141
${{ steps.info.outputs.swift-path }} sdk install ${{ steps.info.outputs.artifact-path }}
144
142
${{ steps.info.outputs.swift-path }} sdk configure --show-configuration $(${{ steps.info.outputs.swift-path }} sdk list | head -n 1) ${{ steps.info.outputs.sdk-id }}
145
143
# recent releases require that ANDROID_NDK_ROOT *not* be set
146
- # see https://github.com/finagolfin /swift-android-sdk/issues/207
144
+ # see https://github.com/swiftlang /swift-driver/pull/1879
147
145
echo "ANDROID_NDK_ROOT=" >> $GITHUB_ENV
148
146
149
147
- name : Create Demo Project
Original file line number Diff line number Diff line change 1
- # Build scripts for Swift Android SDK
1
+ # Dockerfile-based build for Swift Android SDK
2
+
3
+ This is a Dockerfile-based build set-up for the Swift Android SDK.
4
+
5
+ To build the Docker container and run the
6
+
7
+ ```
8
+ $ docker build -t swift-android .
9
+ ```
2
10
3
11
This folder contains scripts to build a Swift Android SDK
4
12
in the form of an artifactbundle.
5
13
6
14
## Running
7
15
8
- The top-level ` ./build ` script installs a host toolchain and the
16
+ The top-level ` ./build-docker ` script installs a host toolchain and the
9
17
Android NDK, and then invokes ` scripts/fetch-source.sh ` which will
10
18
fetch tagged sources for libxml2, curl, boringssl, and swift.
11
19
@@ -27,7 +35,7 @@ whereas building for all the architectures takes over an hour.
27
35
To build an artifactbundle for just the ` x86_64 ` architecture, run:
28
36
29
37
```
30
- TARGET_ARCHS=x86_64 ./build
38
+ TARGET_ARCHS=aarch64 ./build-docker
31
39
```
32
40
33
41
## Installing and validating the SDK
You can’t perform that action at this time.
0 commit comments