19
19
required : true
20
20
type : string
21
21
22
+ compilers_matrix :
23
+ required : true
24
+ type : string
25
+
22
26
target_matrix :
23
27
required : true
24
28
type : string
@@ -905,9 +909,10 @@ jobs:
905
909
906
910
strategy :
907
911
fail-fast : false
908
- matrix : ${{ fromJSON(inputs.host_matrix) }}
912
+ matrix : ${{ fromJSON(inputs.compilers_matrix) }}
913
+
909
914
910
- name : ${{ matrix.os }} ${{ matrix.arch }} Toolchain
915
+ name : ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.variant }} Toolchain
911
916
912
917
steps :
913
918
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
@@ -1068,7 +1073,7 @@ jobs:
1068
1073
uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
1069
1074
with :
1070
1075
max-size : 500M
1071
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-compilers
1076
+ key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}- compilers
1072
1077
variant : sccache
1073
1078
1074
1079
- name : Setup context
@@ -1167,6 +1172,7 @@ jobs:
1167
1172
-D CLANG_TIDY_CONFUSABLE_CHARS_GEN="${{ github.workspace }}/BinaryCache/0/bin/clang-tidy-confusable-chars-gen${ExeSuffix}" `
1168
1173
-D LLDB_TABLEGEN="${{ github.workspace }}/BinaryCache/0/bin/lldb-tblgen${ExeSuffix}" `
1169
1174
-D LLVM_CONFIG_PATH="${{ github.workspace }}/BinaryCache/0/bin/llvm-config${ExeSuffix}" `
1175
+ -D LLVM_ENABLE_ASSERTIONS=${{ matrix.variant == 'Asserts' && 'YES' || 'NO' }} `
1170
1176
-D LLVM_EXTERNAL_SWIFT_SOURCE_DIR=${{ github.workspace }}/SourceCache/swift `
1171
1177
-D LLVM_NATIVE_TOOL_DIR=${{ github.workspace }}/BinaryCache/0/bin `
1172
1178
-D LLVM_TABLEGEN="${{ github.workspace }}/BinaryCache/0/bin/llvm-tblgen${ExeSuffix}" `
@@ -1236,7 +1242,7 @@ jobs:
1236
1242
- name : Upload Compilers
1237
1243
uses : thebrowsercompany/gha-upload-tar-artifact@e18c33b1cd416d0d96a91dc6dce06219f98e4e27 # main
1238
1244
with :
1239
- name : ${{ matrix.os }}-${{ matrix.arch }}-compilers
1245
+ name : ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}- compilers
1240
1246
path : ${{ github.workspace }}/BuildRoot/Library
1241
1247
1242
1248
- name : Extract swift-syntax
@@ -1262,14 +1268,14 @@ jobs:
1262
1268
- name : Upload swift-syntax
1263
1269
uses : thebrowsercompany/gha-upload-tar-artifact@e18c33b1cd416d0d96a91dc6dce06219f98e4e27 # main
1264
1270
with :
1265
- name : ${{matrix.os }}-${{ matrix.arch }}-swift-syntax
1271
+ name : ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}-swift-syntax
1266
1272
path : ${{ github.workspace }}/BinaryCache/swift-syntax
1267
1273
1268
1274
# TODO(compnerd) this takes ~1h due to the size, see if we can compress first
1269
1275
- uses : actions/upload-artifact@v4
1270
1276
if : false # ${{ inputs.debug_info }}
1271
1277
with :
1272
- name : ${{ matrix.os }}-${{ matrix.arch }}-compilers-debug-info
1278
+ name : ${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}- compilers-debug-info
1273
1279
path : |
1274
1280
${{ github.workspace }}/BinaryCache/1/**/*.pdb
1275
1281
@@ -1672,7 +1678,7 @@ jobs:
1672
1678
if : matrix.os != 'Android' || inputs.build_android
1673
1679
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
1674
1680
with :
1675
- name : ${{ inputs.build_os }}-${{ inputs.build_arch }}-compilers
1681
+ name : ${{ inputs.build_os }}-${{ inputs.build_arch }}-Asserts- compilers
1676
1682
path : ${{ github.workspace }}/BinaryCache/Library
1677
1683
- uses : actions/checkout@v4
1678
1684
if : matrix.os != 'Android' || inputs.build_android
@@ -1881,12 +1887,12 @@ jobs:
1881
1887
- name : Download Compilers
1882
1888
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
1883
1889
with :
1884
- name : Windows-${{ inputs.build_arch }}-compilers
1890
+ name : Windows-${{ inputs.build_arch }}-Asserts- compilers
1885
1891
path : ${{ github.workspace }}/BinaryCache/Library
1886
1892
- name : Download swift-syntax
1887
1893
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
1888
1894
with :
1889
- name : Windows-${{ matrix.arch }}-swift-syntax
1895
+ name : Windows-${{ matrix.arch }}-Asserts- swift-syntax
1890
1896
path : ${{ github.workspace }}/BinaryCache/swift-syntax
1891
1897
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
1892
1898
with :
@@ -2130,7 +2136,7 @@ jobs:
2130
2136
if : matrix.os != 'Android' || inputs.build_android
2131
2137
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2132
2138
with :
2133
- name : Windows-${{ inputs.build_arch }}-compilers
2139
+ name : Windows-${{ inputs.build_arch }}-Asserts- compilers
2134
2140
path : ${{ github.workspace }}/BinaryCache/Library
2135
2141
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2136
2142
if : matrix.os != 'Android' || inputs.build_android
@@ -2624,7 +2630,7 @@ jobs:
2624
2630
- name : Download Compilers
2625
2631
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2626
2632
with :
2627
- name : Windows-${{ inputs.build_arch }}-compilers
2633
+ name : Windows-${{ inputs.build_arch }}-Asserts- compilers
2628
2634
path : ${{ github.workspace }}/BinaryCache/Library
2629
2635
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2630
2636
with :
@@ -2640,7 +2646,7 @@ jobs:
2640
2646
path : ${{ github.workspace }}/BinaryCache/Library
2641
2647
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2642
2648
with :
2643
- name : Windows-${{ matrix.arch }}-swift-syntax
2649
+ name : Windows-${{ matrix.arch }}-Asserts- swift-syntax
2644
2650
path : ${{ github.workspace }}/BinaryCache/swift-syntax
2645
2651
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
2646
2652
with :
@@ -3359,7 +3365,7 @@ jobs:
3359
3365
- name : Download Compilers
3360
3366
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
3361
3367
with :
3362
- name : Windows-${{ inputs.build_arch }}-compilers
3368
+ name : Windows-${{ inputs.build_arch }}-Asserts- compilers
3363
3369
path : ${{ github.workspace }}/BinaryCache/Library
3364
3370
- name : Download stdlib
3365
3371
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
@@ -3498,7 +3504,7 @@ jobs:
3498
3504
- name : Download Compilers
3499
3505
uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
3500
3506
with :
3501
- name : Windows-${{ matrix.arch }}-compilers
3507
+ name : Windows-${{ matrix.arch }}-Asserts- compilers
3502
3508
path : ${{ github.workspace }}/BuildRoot/Library
3503
3509
3504
3510
- name : Download Developer Tools
0 commit comments