22
22
# arch: ['x86_64']
23
23
# build both the quick (x86_64) and complete (aarch64,x86_64,armv7) SDKs
24
24
# arch: ['x86_64', '']
25
- # swift-version: ['release ', 'swift-6.2 -branch', 'development']
25
+ # swift-version: ['swift-6.2-RELEASE ', 'swift-6.3 -branch', 'development']
26
26
swift-version : ['swift-6.2-branch', 'development']
27
27
runs-on : ubuntu-24.04
28
28
steps :
@@ -48,19 +48,20 @@ jobs:
48
48
echo "BUILD_SCHEME=${{ matrix.swift-version }}" >> $GITHUB_ENV
49
49
echo "TARGET_ARCHS=${{ matrix.arch }}" >> $GITHUB_ENV
50
50
echo "WORKDIR=${{ runner.temp }}/swift-android-sdk" >> $GITHUB_ENV
51
- SWIFT_VERSION=$(curl -fsSL https://download.swift.org/${{ matrix.swift-version }}/ubuntu2404/latest-build.yml | grep '^dir: ' | cut -f 2 -d ' ')
52
- echo "SWIFT_VERSION=${SWIFT_VERSION}" >> $GITHUB_ENV
51
+ # fetch the tag associated with the latest published build for the specific Swift version
52
+ SWIFT_TAG=$(curl -fsSL https://download.swift.org/${{ matrix.swift-version }}/ubuntu2404/latest-build.yml | grep '^dir: ' | cut -f 2 -d ' ')
53
+ echo "SWIFT_TAG=${SWIFT_TAG}" >> $GITHUB_ENV
53
54
- name : Build Android SDK (Local)
54
55
if : ${{ matrix.build-type == 'local' }}
55
56
working-directory : swift-ci/sdks/android
56
57
run : |
57
58
sudo apt install -q ninja-build patchelf
58
- ./build-local tag:${SWIFT_VERSION } ${WORKDIR}
59
+ ./build-local tag:${SWIFT_TAG } ${WORKDIR}
59
60
- name : Build Android SDK (Docker)
60
61
if : ${{ matrix.build-type == 'docker' }}
61
62
working-directory : swift-ci/sdks/android
62
63
run : |
63
- ./build-docker tag:${SWIFT_VERSION } ${WORKDIR}
64
+ ./build-docker tag:${SWIFT_TAG } ${WORKDIR}
64
65
- name : Install Host Toolchain
65
66
if : ${{ matrix.build-type == 'docker' }}
66
67
working-directory : swift-ci/sdks/android
69
70
# local host toolchain, but we need one in order to run
70
71
# the SDK validation tests, so we install it now
71
72
HOST_OS=ubuntu$(lsb_release -sr)
73
+ SWIFT_VERSION="tag:${SWIFT_TAG}"
72
74
source ./scripts/toolchain-vars.sh
73
75
mkdir -p ${WORKDIR}/host-toolchain
74
76
./scripts/install-swift.sh ${WORKDIR}/host-toolchain/$SWIFT_BASE/usr
0 commit comments