Skip to content

Commit 08a52d8

Browse files
committed
Fix relative artifactbundle root
1 parent e842820 commit 08a52d8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/test-action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
os: ['ubuntu-24.04', 'ubuntu-22.04', 'macos-13', 'macos-15']
14-
swift-version: ['6.0', '6.1']
15-
#swift-version: ['6.0', '6.1', 'nightly-6.1', '6']
14+
#swift-version: ['6.0', '6.1']
15+
swift-version: ['6.0', '6.1', 'nightly-6.2']
1616
steps:
1717
- name: Checkout Action
1818
uses: actions/checkout@v4

action.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ runs:
169169
SWIFT_VERSION=$(cat ${SWIFT_VERSIONS_FILE} | ( grep -- '-SNAPSHOT' || true ) | head -n 1)
170170
elif [[ "${SWIFT_VERSION}" == nightly-* ]]; then
171171
echo "Checking nightly build for: ${SWIFT_VERSION}"
172-
# e.g., nightly-6.1 will match 6.1-DEVELOPMENT-SNAPSHOT-*
172+
# e.g., nightly-6.2 will match 6.2-DEVELOPMENT-SNAPSHOT-*
173173
SWIFT_VERSION=$(echo ${SWIFT_VERSION} | sed 's;nightly-;;g')
174174
SWIFT_VERSION=$(cat ${SWIFT_VERSIONS_FILE} | ( grep -- "${SWIFT_VERSION}-DEVELOPMENT-SNAPSHOT" || true ) | head -n 1)
175175
echo "Found nightly build: ${SWIFT_VERSION}"
@@ -332,7 +332,7 @@ runs:
332332
333333
# extract the swiftResourcesPath from the swift-sdk.json
334334
SWIFT_RESOURCES_ROOT_PATH=$(cat ${SWIFT_ARTIFACTBUNDLE_ROOT}/swift-sdk.json | jq -r '.targetTriples[] | .swiftResourcesPath' | head -n 1)
335-
SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH="${SWIFT_SDK_ROOT_PATH}/${SWIFT_RESOURCES_ROOT_PATH}"
335+
SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH="${SWIFT_ARTIFACTBUNDLE_ROOT}/${SWIFT_RESOURCES_ROOT_PATH}"
336336
337337
echo "SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH=${SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH}" >> $GITHUB_ENV
338338
@@ -390,7 +390,8 @@ runs:
390390
cp -vaf ${SWIFT_ARTIFACTBUNDLE_SDK_ROOT_PATH}/usr/lib/${{ steps.setup.outputs.android-sdk-arch }}-linux-android/lib*.so ${PACK_DIR} || true
391391
392392
# 6.2 keeps libraries in the resources root folder
393-
cp -vaf ${SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH}/usr/lib/swift-${{ steps.setup.outputs.android-sdk-arch }}/android/lib*.so ${PACK_DIR} || true
393+
# e.g.: swift-resources/usr/lib/swift-x86_64
394+
cp -vaf ${SWIFT_ARTIFACTBUNDLE_RESOURCES_ROOT_PATH}/android/lib*.so ${PACK_DIR} || true
394395
395396
# clear out libraries that are already provided by Android
396397
rm -v ${PACK_DIR}/lib{c,dl,log,m,z}.so || true

0 commit comments

Comments
 (0)