@@ -431,6 +431,7 @@ jobs:
431
431
cxxflags : ${{ inputs.ANDROID_CMAKE_CXX_FLAGS }}
432
432
os : Android
433
433
extra_flags : -DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
434
+ module_triple : aarch64-unknown-linux-android
434
435
435
436
- arch : armv7
436
437
cc : clang
@@ -439,6 +440,7 @@ jobs:
439
440
cxxflags : ${{ inputs.ANDROID_CMAKE_CXX_FLAGS }}
440
441
os : Android
441
442
extra_flags : -DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=armeabi-v7a
443
+ module_triple : armv7-unknown-linux-androideabi
442
444
443
445
- arch : i686
444
446
cc : clang
@@ -447,6 +449,7 @@ jobs:
447
449
cxxflags : ${{ inputs.ANDROID_CMAKE_CXX_FLAGS }}
448
450
os : Android
449
451
extra_flags : -DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86
452
+ module_triple : i686-unknown-linux-android
450
453
451
454
- arch : x86_64
452
455
cc : clang
@@ -455,6 +458,7 @@ jobs:
455
458
cxxflags : ${{ inputs.ANDROID_CMAKE_CXX_FLAGS }}
456
459
os : Android
457
460
extra_flags : -DCMAKE_ANDROID_API=${{ inputs.ANDROID_API_LEVEL }} -DCMAKE_ANDROID_ARCH_ABI=x86_64
461
+ module_triple : x86_64-unknown-linux-android
458
462
459
463
name : ${{ matrix.os }} ${{ matrix.arch }} ds2
460
464
@@ -507,8 +511,9 @@ jobs:
507
511
-D CMAKE_CXX_COMPILER=${{ matrix.cxx }} `
508
512
-D CMAKE_CXX_FLAGS="${{ matrix.cxxflags }}" `
509
513
-D MSVC_C_ARCHITECTURE_ID=${{ matrix.arch }} `
514
+ -D DS2_PROGRAM_PREFIX="${{ matrix.module_triple }}-" `
510
515
-D DS2_REGSGEN2=${{ github.workspace }}/BinaryCache/RegsGen2/regsgen2.exe `
511
- -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BinaryCache/Library/Developer `
516
+ -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BinaryCache/Library/Developer/ds2/usr `
512
517
-D CMAKE_SYSTEM_NAME=${{ matrix.os }} `
513
518
-D CMAKE_ANDROID_NDK=$NDKPATH `
514
519
${{ matrix.extra_flags }} `
@@ -2411,8 +2416,9 @@ jobs:
2411
2416
if : matrix.os != 'Android' || inputs.build_android
2412
2417
run : |
2413
2418
$OS = "${{ matrix.os }}".ToLowerInvariant()
2419
+ $Lib = if ("${{ matrix.os }}" -eq "Windows") { "Testing.lib" } else { "libTesting.so" }
2414
2420
New-Item -ItemType Directory -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/Testing-development/usr/lib/swift/${OS}/${{ matrix.cpu }}" -Force -ErrorAction Ignore | Out-Null
2415
- Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/Testing-development/usr/lib/swift/${OS}/Testing.lib " "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/Testing-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/Testing.lib "
2421
+ Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/Testing-development/usr/lib/swift/${OS}/${Lib} " "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/Testing-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/${Lib} "
2416
2422
- name : Install xctest
2417
2423
if : matrix.os != 'Android' || inputs.build_android
2418
2424
run : |
@@ -2421,9 +2427,10 @@ jobs:
2421
2427
if : matrix.os != 'Android' || inputs.build_android
2422
2428
run : |
2423
2429
$OS = "${{ matrix.os }}".ToLowerInvariant()
2430
+ $Lib = if ("${{ matrix.os }}" -eq "Windows") { "XCTest.lib" } else { "libXCTest.so" }
2424
2431
New-Item -ItemType Directory -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${{ matrix.cpu }}" -Force -ErrorAction Ignore | Out-Null
2425
2432
New-Item -ItemType Directory -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/XCTest.swiftmodule" -Force -ErrorAction Ignore | Out-Null
2426
- Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/XCTest.lib " "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/XCTest.lib "
2433
+ Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${LIB} " "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/${Lib} "
2427
2434
Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/XCTest.swiftdoc" "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/XCTest.swiftmodule/${{ matrix.triple_no_api_level }}.swiftdoc"
2428
2435
Move-Item -Path "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/${{ matrix.cpu }}/XCTest.swiftmodule" "${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/${{ matrix.os }}.platform/Developer/Library/XCTest-development/usr/lib/swift/${OS}/XCTest.swiftmodule/${{ matrix.triple_no_api_level }}.swiftmodule"
2429
2436
- name : Install foundation
@@ -3646,7 +3653,7 @@ jobs:
3646
3653
if : inputs.build_android
3647
3654
with :
3648
3655
name : Android-${{ matrix.arch }}-ds2
3649
- path : ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Android.platform/Developer/Library/${{ matrix.triple_no_api_level }}
3656
+ path : ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Android.platform/Developer/Library
3650
3657
3651
3658
- uses : actions/checkout@v4
3652
3659
if : inputs.build_android
0 commit comments