Skip to content

Commit 71bb7b0

Browse files
marcpruxfinagolfin
authored andcommitted
Fix JSON format for swift-sdks.json
Closes #209
1 parent 2889b74 commit 71bb7b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/sdks.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,11 @@ jobs:
225225
EOF
226226
227227
for api in $(eval echo "{$ANDROID_API_LEVEL..35}"); do
228+
if [[ ${api} == "35" ]]; then
229+
TRAILING_COMMA=""
230+
else
231+
TRAILING_COMMA=","
232+
fi
228233
cat >> $BUNDLE_DIR/$SDK_DIR/swift-sdk.json << EOF
229234
"aarch64-unknown-linux-android$api": {
230235
"sdkRootPath": "${ROOT}",
@@ -243,7 +248,7 @@ jobs:
243248
"swiftResourcesPath": "${ROOT}/usr/lib/swift",
244249
"swiftStaticResourcesPath": "${ROOT}/usr/lib/swift_static-armv7",
245250
"toolsetPaths": ["swift-toolset.json"]
246-
},
251+
}${TRAILING_COMMA}
247252
EOF
248253
done
249254

0 commit comments

Comments
 (0)