@@ -1893,19 +1893,11 @@ jobs:
1893
1893
path : ${{ github.workspace }}/SourceCache/swift-corelibs-xctest
1894
1894
show-progress : false
1895
1895
- uses : actions/checkout@v4
1896
- if : matrix.os != 'Android'
1897
1896
with :
1898
1897
repository : swiftlang/swift-testing
1899
1898
ref : ${{ inputs.swift_testing_revision }}
1900
1899
path : ${{ github.workspace }}/SourceCache/swift-testing
1901
1900
show-progress : false
1902
- - uses : actions/checkout@v4
1903
- if : matrix.os == 'Android'
1904
- with :
1905
- repository : swiftlang/swift-testing
1906
- ref : main-next
1907
- path : ${{ github.workspace }}/SourceCache/swift-testing
1908
- show-progress : false
1909
1901
1910
1902
- run : |
1911
1903
$RTLPath = cygpath -w ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform/Developer/SDKs/Windows.sdk/usr/bin
@@ -2234,18 +2226,10 @@ jobs:
2234
2226
with :
2235
2227
name : Windows-stdlib-${{ matrix.arch }}
2236
2228
path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2237
- - uses : actions/download-artifact@v4
2238
- with :
2239
- name : Windows-stdlib-amd64
2240
- path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2241
2229
- uses : actions/download-artifact@v4
2242
2230
with :
2243
2231
name : Windows-sdk-${{ matrix.arch }}
2244
2232
path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2245
- - uses : actions/download-artifact@v4
2246
- with :
2247
- name : Windows-sdk-amd64
2248
- path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2249
2233
- uses : actions/download-artifact@v4
2250
2234
with :
2251
2235
name : macros-amd64
@@ -2266,7 +2250,7 @@ jobs:
2266
2250
if : matrix.arch == 'arm64'
2267
2251
with :
2268
2252
name : cmark-gfm-arm64-0.29.0.gfm.13
2269
- path : ${{ github.workspace }}/BuildRoot /Library/cmark-gfm-0.29.0.gfm.13/usr
2253
+ path : ${{ github.workspace }}/BinaryCache /Library/cmark-gfm-0.29.0.gfm.13/usr
2270
2254
2271
2255
- uses : actions/checkout@v4
2272
2256
with :
@@ -2395,6 +2379,16 @@ jobs:
2395
2379
Move-Item ${env:SDKROOT}/usr/lib/swift/windows/FoundationEssentials.lib ${env:SDKROOT}/usr/lib/swift/windows/${{ matrix.cpu }}/
2396
2380
Move-Item ${env:SDKROOT}/usr/lib/swift/windows/FoundationInternationalization.lib ${env:SDKROOT}/usr/lib/swift/windows/${{ matrix.cpu }}/
2397
2381
2382
+ # Download host libraries for the windows amd64 host, after moving the target libraries to the target-specific directory.
2383
+ - uses : actions/download-artifact@v4
2384
+ with :
2385
+ name : Windows-stdlib-amd64
2386
+ path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2387
+ - uses : actions/download-artifact@v4
2388
+ with :
2389
+ name : Windows-sdk-amd64
2390
+ path : ${{ github.workspace }}/BinaryCache/Library/Developer/Platforms/Windows.platform
2391
+
2398
2392
- name : Configure swift-argument-parser
2399
2393
run : |
2400
2394
# Workaround CMake 3.20 issue
@@ -2416,7 +2410,7 @@ jobs:
2416
2410
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2417
2411
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2418
2412
-D CMAKE_Swift_COMPILER_WORKS=YES `
2419
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2413
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2420
2414
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2421
2415
-D CMAKE_SYSTEM_NAME=Windows `
2422
2416
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2446,7 +2440,7 @@ jobs:
2446
2440
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2447
2441
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2448
2442
-D CMAKE_Swift_COMPILER_WORKS=YES `
2449
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2443
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2450
2444
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2451
2445
-D CMAKE_SYSTEM_NAME=Windows `
2452
2446
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2475,7 +2469,7 @@ jobs:
2475
2469
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2476
2470
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2477
2471
-D CMAKE_Swift_COMPILER_WORKS=YES `
2478
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2472
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2479
2473
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2480
2474
-D CMAKE_SYSTEM_NAME=Windows `
2481
2475
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2504,7 +2498,7 @@ jobs:
2504
2498
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2505
2499
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2506
2500
-D CMAKE_Swift_COMPILER_WORKS=YES `
2507
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2501
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2508
2502
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2509
2503
-D CMAKE_SYSTEM_NAME=Windows `
2510
2504
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2533,7 +2527,7 @@ jobs:
2533
2527
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2534
2528
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2535
2529
-D CMAKE_Swift_COMPILER_WORKS=YES `
2536
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2530
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2537
2531
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2538
2532
-D CMAKE_SYSTEM_NAME=Windows `
2539
2533
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2566,7 +2560,7 @@ jobs:
2566
2560
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2567
2561
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2568
2562
-D CMAKE_Swift_COMPILER_WORKS=YES `
2569
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2563
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2570
2564
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2571
2565
-D CMAKE_SYSTEM_NAME=Windows `
2572
2566
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2596,7 +2590,7 @@ jobs:
2596
2590
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2597
2591
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2598
2592
-D CMAKE_Swift_COMPILER_WORKS=YES `
2599
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2593
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2600
2594
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2601
2595
-D CMAKE_SYSTEM_NAME=Windows `
2602
2596
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2629,7 +2623,7 @@ jobs:
2629
2623
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2630
2624
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2631
2625
-D CMAKE_Swift_COMPILER_WORKS=YES `
2632
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2626
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2633
2627
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2634
2628
-D CMAKE_SYSTEM_NAME=Windows `
2635
2629
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2657,7 +2651,7 @@ jobs:
2657
2651
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2658
2652
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2659
2653
-D CMAKE_Swift_COMPILER_WORKS=YES `
2660
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2654
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2661
2655
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2662
2656
-D CMAKE_SYSTEM_NAME=Windows `
2663
2657
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2678,7 +2672,7 @@ jobs:
2678
2672
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2679
2673
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2680
2674
-D CMAKE_Swift_COMPILER_WORKS=YES `
2681
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2675
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2682
2676
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2683
2677
-D CMAKE_SYSTEM_NAME=Windows `
2684
2678
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2716,7 +2710,7 @@ jobs:
2716
2710
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2717
2711
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2718
2712
-D CMAKE_Swift_COMPILER_WORKS=YES `
2719
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2713
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2720
2714
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2721
2715
-D CMAKE_SYSTEM_NAME=Windows `
2722
2716
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2751,17 +2745,20 @@ jobs:
2751
2745
-D CMAKE_C_COMPILER=${CLANG_CL} `
2752
2746
-D CMAKE_C_COMPILER_TARGET=${{ matrix.triple }} `
2753
2747
-D CMAKE_C_FLAGS="${{ inputs.WINDOWS_CMAKE_C_FLAGS }}" `
2748
+ -D CMAKE_CXX_COMPILER=${CLANG_CL} `
2749
+ -D CMAKE_CXX_COMPILER_TARGET=${{ matrix.triple }} `
2750
+ -D CMAKE_CXX_FLAGS="${{ inputs.WINDOWS_CMAKE_CXX_FLAGS }}" `
2754
2751
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2755
2752
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2756
2753
-D CMAKE_Swift_COMPILER_WORKS=YES `
2757
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2754
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2758
2755
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2759
2756
-D CMAKE_SYSTEM_NAME=Windows `
2760
2757
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
2761
2758
-G Ninja `
2762
2759
-S ${{ github.workspace }}/SourceCache/swift-markdown `
2763
2760
-D ArgumentParser_DIR=${{ github.workspace }}/BinaryCache/swift-argument-parser/cmake/modules `
2764
- -D cmark-gfm_DIR=${{ github.workspace }}/BuildRoot /Library/cmark-gfm-0.29.0.gfm.13/usr/lib/cmake
2761
+ -D cmark-gfm_DIR=${{ github.workspace }}/BinaryCache /Library/cmark-gfm-0.29.0.gfm.13/usr/lib/cmake
2765
2762
- name : Build Markdown
2766
2763
run : cmake --build ${{ github.workspace }}/BinaryCache/swift-markdown
2767
2764
@@ -2781,7 +2778,7 @@ jobs:
2781
2778
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2782
2779
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2783
2780
-D CMAKE_Swift_COMPILER_WORKS=YES `
2784
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2781
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2785
2782
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2786
2783
-D CMAKE_SYSTEM_NAME=Windows `
2787
2784
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2815,7 +2812,7 @@ jobs:
2815
2812
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2816
2813
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2817
2814
-D CMAKE_Swift_COMPILER_WORKS=YES `
2818
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2815
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2819
2816
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2820
2817
-D CMAKE_SYSTEM_NAME=Windows `
2821
2818
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2845,7 +2842,7 @@ jobs:
2845
2842
-D CMAKE_Swift_COMPILER=${SWIFTC} `
2846
2843
-D CMAKE_Swift_COMPILER_TARGET=${{ matrix.triple }} `
2847
2844
-D CMAKE_Swift_COMPILER_WORKS=YES `
2848
- -D CMAKE_Swift_FLAGS="${{ inputs.CMAKE_Swift_FLAGS }}" `
2845
+ -D CMAKE_Swift_FLAGS="-sdk ${env:SDKROOT} ${{ inputs.CMAKE_Swift_FLAGS }}" `
2849
2846
-D CMAKE_Swift_FLAGS_RELEASE="-O" `
2850
2847
-D CMAKE_SYSTEM_NAME=Windows `
2851
2848
-D CMAKE_SYSTEM_PROCESSOR=${{ matrix.cpu }} `
@@ -2942,6 +2939,11 @@ jobs:
2942
2939
with :
2943
2940
name : devtools-amd64
2944
2941
path : ${{ github.workspace }}/BuildRoot/Library
2942
+ - name : Download stdlib
2943
+ uses : actions/download-artifact@v4
2944
+ with :
2945
+ name : Windows-stdlib-${{ matrix.arch }}
2946
+ path : ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform
2945
2947
- name : Download SDK
2946
2948
uses : actions/download-artifact@v4
2947
2949
with :
@@ -2991,6 +2993,10 @@ jobs:
2991
2993
Move-Item ${env:SDKROOT}/usr/lib/swift/windows/FoundationInternationalization.lib ${env:SDKROOT}/usr/lib/swift/windows/${{ matrix.cpu }}/
2992
2994
2993
2995
# Download host SDK on top of the target SDK, so that the runtime DLLs are the host ones.
2996
+ - uses : actions/download-artifact@v4
2997
+ with :
2998
+ name : Windows-stdlib-amd64
2999
+ path : ${{ github.workspace }}/BuildRoot/Library/Developer/Platforms/Windows.platform
2994
3000
- uses : actions/download-artifact@v4
2995
3001
with :
2996
3002
name : Windows-sdk-amd64
0 commit comments