File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 69
69
|-----|-----|-----|
70
70
| swift-version | The version of the Swift toolchain to use | 6.0.3 |
71
71
| package-path | The folder where the swift package is checked out | . |
72
+ | swift-configuration | Whether to build with debug or release configuration | |
72
73
| swift-build-flags | Additional flags to pass to the swift build command | |
73
74
| swift-test-flags | Additional flags to pass to the swift test command | |
74
75
| test-env | Test environment variables key=value | |
@@ -235,6 +236,6 @@ git tag v2.0.2
235
236
git push --tags
236
237
git tag -fa v2 -m "Update v2 tag"
237
238
git push origin v2 --force
239
+ gh release create
238
240
` ` `
239
241
240
-
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ inputs:
23
23
description : ' Additional flags to pass to the swift build command'
24
24
required : true
25
25
default : ' '
26
+ swift-configuration :
27
+ description : ' Whether to build in debug or release configuration'
28
+ required : true
29
+ default : ' debug'
26
30
swift-test-flags :
27
31
description : ' Additional flags to pass to the swift test command'
28
32
required : true
@@ -216,7 +220,7 @@ runs:
216
220
if [ "${{ inputs.build-tests }}" == 'true' ]; then
217
221
BUILD_TESTS="--build-tests"
218
222
fi
219
- ${{ steps.install.outputs.swiftcmd }} ${BUILD_TESTS}
223
+ ${{ steps.install.outputs.swiftcmd }} -c ${{ inputs.swift-configuration }} ${BUILD_TESTS}
220
224
221
225
- name : Prepare Android Emulator Test Script
222
226
if : ${{ inputs.run-tests == 'true' && inputs.build-tests == 'true' && inputs.build-package == 'true' }}
@@ -237,10 +241,10 @@ runs:
237
241
mkdir -p ${PACK_DIR}
238
242
239
243
# copy the built test binary
240
- cp -va ${BUILD_DIR}/${SWIFT_SDK_TARGET}/debug /*.xctest ${PACK_DIR}
244
+ cp -va ${BUILD_DIR}/${SWIFT_SDK_TARGET}/${{ inputs.swift-configuration }} /*.xctest ${PACK_DIR}
241
245
242
246
# copy any optional resource bundles
243
- cp -vaf ${BUILD_DIR}/${SWIFT_SDK_TARGET}/debug /*.resources ${PACK_DIR} || true
247
+ cp -vaf ${BUILD_DIR}/${SWIFT_SDK_TARGET}/${{ inputs.swift-configuration }} /*.resources ${PACK_DIR} || true
244
248
# 6.0.2 keeps libraries in per-API folders
245
249
cp -vaf ${SWIFT_SDK_HOME}/usr/lib/${{ steps.setup.outputs.android-sdk-arch }}-linux-android/${SWIFT_SDK_ANROID_API}/lib*.so ${PACK_DIR} || true
246
250
You can’t perform that action at this time.
0 commit comments