@@ -147,7 +147,8 @@ jobs:
147
147
ANDROID_CMAKE_EXE_LINKER_FLAGS : ${{ steps.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}
148
148
ANDROID_CMAKE_SHARED_LINKER_FLAGS : ${{ steps.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}
149
149
ANDROID_NDK_VERSION : ${{ steps.context.outputs.ANDROID_NDK_VERSION }}
150
- CMAKE_Swift_FLAGS : ${{ steps.context.outputs.CMAKE_Swift_FLAGS }}
150
+ WINDOWS_CMAKE_Swift_FLAGS : ${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}
151
+ DARWIN_CMAKE_Swift_FLAGS : ${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}
151
152
debug_info : ${{ steps.context.outputs.debug_info }}
152
153
signed : ${{ steps.context.outputs.signed }}
153
154
swift_version : ${{ steps.context.outputs.swift_version }}
@@ -247,7 +248,8 @@ jobs:
247
248
echo ANDROID_CMAKE_CXX_FLAGS="-ffunction-sections -fdata-sections -g" >> ${GITHUB_OUTPUT}
248
249
echo WINDOWS_CMAKE_EXE_LINKER_FLAGS="-incremental:no -debug -opt:ref -opt:icf" >> ${GITHUB_OUTPUT}
249
250
echo WINDOWS_CMAKE_SHARED_LINKER_FLAGS="-incremental:no -debug -opt:ref -opt:icf" >> ${GITHUB_OUTPUT}
250
- echo CMAKE_Swift_FLAGS="-g -debug-info-format=codeview -Xlinker -debug -Xlinker -incremental:no -Xlinker -opt:ref -Xlinker -opt:icf" >> ${GITHUB_OUTPUT}
251
+ echo WINDOWS_CMAKE_Swift_FLAGS="-g -debug-info-format=codeview -Xlinker -debug -Xlinker -incremental:no -Xlinker -opt:ref -Xlinker -opt:icf" >> ${GITHUB_OUTPUT}
252
+ echo DARWIN_CMAKE_Swift_FLAGS="-g" >> ${GITHUB_OUTPUT}
251
253
else
252
254
echo debug_info=false >> ${GITHUB_OUTPUT}
253
255
echo WINDOWS_CMAKE_C_FLAGS="/GS- /Gw /Gy /Oi /Oy /Zc:inline /Zc:preprocessor" >> ${GITHUB_OUTPUT}
@@ -258,7 +260,8 @@ jobs:
258
260
echo ANDROID_CMAKE_CXX_FLAGS="-ffunction-sections -fdata-sections" >> ${GITHUB_OUTPUT}
259
261
echo WINDOWS_CMAKE_EXE_LINKER_FLAGS="" >> ${GITHUB_OUTPUT}
260
262
echo WINDOWS_CMAKE_SHARED_LINKER_FLAGS="" >> ${GITHUB_OUTPUT}
261
- echo CMAKE_Swift_FLAGS="-Xlinker -incremental:no -Xlinker -opt:ref -Xlinker -opt:icf" >> ${GITHUB_OUTPUT}
263
+ echo WINDOWS_CMAKE_Swift_FLAGS="-Xlinker -incremental:no -Xlinker -opt:ref -Xlinker -opt:icf" >> ${GITHUB_OUTPUT}
264
+ echo DARWIN_CMAKE_Swift_FLAGS="" >> ${GITHUB_OUTPUT}
262
265
fi
263
266
echo ANDROID_CMAKE_EXE_LINKER_FLAGS="" >> ${GITHUB_OUTPUT}
264
267
echo ANDROID_CMAKE_SHARED_LINKER_FLAGS="" >> ${GITHUB_OUTPUT}
@@ -303,19 +306,25 @@ jobs:
303
306
"include": [
304
307
{
305
308
"arch": "amd64",
309
+ "compiler_target": "x86_64-unknown-windows-msvc",
306
310
"os": "Windows",
307
311
"cc": "cl",
308
312
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
309
313
"cxx": "cl",
310
- "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}"
314
+ "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
315
+ "swiftflags": "${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}",
316
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=AMD64 -D CMAKE_MT=mt"
311
317
},
312
318
{
313
319
"arch": "arm64",
320
+ "compiler_target": "aarch64-unknown-windows-msvc",
314
321
"os": "Windows",
315
322
"cc": "cl",
316
323
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
317
324
"cxx": "cl",
318
- "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}"
325
+ "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
326
+ "swiftflags": "${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}",
327
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=ARM64 -D CMAKE_MT=mt"
319
328
}
320
329
]
321
330
}
@@ -328,7 +337,9 @@ jobs:
328
337
"cc": "cl",
329
338
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
330
339
"cxx": "cl",
331
- "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}"
340
+ "cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
341
+ "swiftflags": "${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}",
342
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=AMD64 -D CMAKE_MT=mt"
332
343
}
333
344
]
334
345
}
@@ -342,7 +353,8 @@ jobs:
342
353
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
343
354
"cxx": "cl",
344
355
"cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
345
- "extra_flags": ""
356
+ "swiftflags": "${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}",
357
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=AMD64 -D CMAKE_MT=mt"
346
358
},
347
359
{
348
360
"arch": "arm64",
@@ -351,7 +363,8 @@ jobs:
351
363
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
352
364
"cxx": "cl",
353
365
"cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
354
- "extra_flags": ""
366
+ "swiftflags": "${{ steps.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}",
367
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=ARM64 -D CMAKE_MT=mt"
355
368
},
356
369
{
357
370
"arch": "x86",
@@ -360,7 +373,8 @@ jobs:
360
373
"cflags": "${{ steps.context.outputs.WINDOWS_CMAKE_C_FLAGS }}",
361
374
"cxx": "cl",
362
375
"cxxflags": "${{ steps.context.outputs.WINDOWS_CMAKE_CXX_FLAGS }}",
363
- "extra_flags": ""
376
+ "swiftflags": "",
377
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=X86 -D CMAKE_MT=mt"
364
378
},
365
379
{
366
380
"arch": "arm64",
@@ -369,6 +383,7 @@ jobs:
369
383
"cflags": "${{ steps.context.outputs.ANDROID_CMAKE_C_FLAGS }}",
370
384
"cxx": "clang++",
371
385
"cxxflags": "${{ steps.context.outputs.ANDROID_CMAKE_CXX_FLAGS }}",
386
+ "swiftflags": "",
372
387
"extra_flags": "-DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a"
373
388
},
374
389
{
@@ -378,6 +393,7 @@ jobs:
378
393
"cflags": "${{ steps.context.outputs.ANDROID_CMAKE_C_FLAGS }}",
379
394
"cxx": "clang++",
380
395
"cxxflags": "${{ steps.context.outputs.ANDROID_CMAKE_CXX_FLAGS }}",
396
+ "swiftflags": "",
381
397
"extra_flags": "-DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a"
382
398
},
383
399
{
@@ -387,6 +403,7 @@ jobs:
387
403
"cflags": "${{ steps.context.outputs.ANDROID_CMAKE_C_FLAGS }}",
388
404
"cxx": "clang++",
389
405
"cxxflags": "${{ steps.context.outputs.ANDROID_CMAKE_CXX_FLAGS }}",
406
+ "swiftflags": "",
390
407
"extra_flags": "-DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86"
391
408
},
392
409
{
@@ -396,6 +413,7 @@ jobs:
396
413
"cflags": "${{ steps.context.outputs.ANDROID_CMAKE_C_FLAGS }}",
397
414
"cxx": "clang++",
398
415
"cxxflags": "${{ steps.context.outputs.ANDROID_CMAKE_CXX_FLAGS }}",
416
+ "swiftflags": "",
399
417
"extra_flags": "-DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86_64"
400
418
}
401
419
]
@@ -405,32 +423,40 @@ jobs:
405
423
"include": [
406
424
{
407
425
"arch": "x86_64",
426
+ "compiler_target": "x86_64-apple-macosx10.15",
408
427
"os": "Darwin",
409
428
"cc": "clang",
410
429
"cflags": "${{ steps.context.outputs.DARWIN_CMAKE_C_FLAGS }}",
411
430
"cxx": "clang++",
412
- "cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}"
431
+ "cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}",
432
+ "swiftflags": "${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}",
433
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=\"10.15\" -D CMAKE_OSX_ARCHITECTURES=x86_64"
413
434
},
414
435
{
415
- "arch": "aarch64",
436
+ "arch": "arm64",
437
+ "compiler_target": "arm64-apple-macosx10.15",
416
438
"os": "Darwin",
417
439
"cc": "clang",
418
440
"cflags": "${{ steps.context.outputs.DARWIN_CMAKE_C_FLAGS }}",
419
441
"cxx": "clang++",
420
- "cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}"
442
+ "cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}",
443
+ "swiftflags": "${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}",
444
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=arm64 -D CMAKE_OSX_DEPLOYMENT_TARGET=\"10.15\" -D CMAKE_OSX_ARCHITECTURES=arm64"
421
445
}
422
446
]
423
447
}
424
448
DARWIN_BUILD_MATRIX : >-
425
449
{
426
450
"include": [
427
451
{
428
- "arch": "aarch64 ",
452
+ "arch": "arm64 ",
429
453
"os": "Darwin",
430
454
"cc": "clang",
431
455
"cflags": "${{ steps.context.outputs.DARWIN_CMAKE_C_FLAGS }}",
432
456
"cxx": "clang++",
433
457
"cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}"
458
+ "swiftflags": "${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}",
459
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=arm64 -D CMAKE_OSX_DEPLOYMENT_TARGET=\"10.15\" -D CMAKE_OSX_ARCHITECTURES=arm64"
434
460
}
435
461
]
436
462
}
@@ -444,16 +470,18 @@ jobs:
444
470
"cflags": "${{ steps.context.outputs.DARWIN_CMAKE_C_FLAGS }}",
445
471
"cxx": "clang++",
446
472
"cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}",
447
- "extra_flags": ""
473
+ "swiftflags": "${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}",
474
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=\"10.15\" -D CMAKE_OSX_ARCHITECTURES=x86_64"
448
475
},
449
476
{
450
- "arch": "aarch64 ",
477
+ "arch": "arm64 ",
451
478
"os": "Darwin",
452
479
"cc": "clang",
453
480
"cflags": "${{ steps.context.outputs.DARWIN_CMAKE_C_FLAGS }}",
454
481
"cxx": "clang++",
455
482
"cxxflags": "${{ steps.context.outputs.DARWIN_CMAKE_CXX_FLAGS }}",
456
- "extra_flags": ""
483
+ "swiftflags": "${{ steps.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}",
484
+ "extra_flags": "-D CMAKE_SYSTEM_PROCESSOR=arm64 -D CMAKE_OSX_DEPLOYMENT_TARGET=\"10.15\" -D CMAKE_OSX_ARCHITECTURES=arm64"
457
485
}
458
486
]
459
487
}
@@ -524,7 +552,7 @@ jobs:
524
552
ANDROID_CMAKE_EXE_LINKER_FLAGS : ${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}
525
553
ANDROID_CMAKE_SHARED_LINKER_FLAGS : ${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}
526
554
ANDROID_NDK_VERSION : ${{ needs.context.outputs.ANDROID_NDK_VERSION }}
527
- CMAKE_Swift_FLAGS : ${{ needs.context.outputs.CMAKE_Swift_FLAGS }}
555
+ CMAKE_Swift_FLAGS : ${{ needs.context.outputs.WINDOWS_CMAKE_Swift_FLAGS }}
528
556
debug_info : ${{ fromJSON(needs.context.outputs.debug_info) }}
529
557
signed : ${{ fromJSON(needs.context.outputs.signed) }}
530
558
swift_version : ${{ needs.context.outputs.swift_version }}
@@ -597,7 +625,7 @@ jobs:
597
625
ANDROID_CMAKE_EXE_LINKER_FLAGS : ${{ needs.context.outputs.ANDROID_CMAKE_EXE_LINKER_FLAGS }}
598
626
ANDROID_CMAKE_SHARED_LINKER_FLAGS : ${{ needs.context.outputs.ANDROID_CMAKE_SHARED_LINKER_FLAGS }}
599
627
ANDROID_NDK_VERSION : ${{ needs.context.outputs.ANDROID_NDK_VERSION }}
600
- CMAKE_Swift_FLAGS : ${{ needs.context.outputs.CMAKE_Swift_FLAGS }}
628
+ CMAKE_Swift_FLAGS : ${{ needs.context.outputs.DARWIN_CMAKE_Swift_FLAGS }}
601
629
debug_info : ${{ fromJSON(needs.context.outputs.debug_info) }}
602
630
signed : ${{ fromJSON(needs.context.outputs.signed) }}
603
631
swift_version : ${{ needs.context.outputs.swift_version }}
0 commit comments