@@ -343,11 +343,10 @@ jobs:
343
343
echo "hash=$hash" >> $env:GITHUB_OUTPUT
344
344
345
345
- name : Setup sccache
346
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
346
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
347
347
with :
348
- max-size : 100M
349
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-sqlite
350
- variant : sccache
348
+ disk-max-size : 100M
349
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-sqlite
351
350
352
351
- name : Configure SQLite
353
352
run : |
@@ -560,6 +559,11 @@ jobs:
560
559
name : ${{ matrix.os }} ${{ matrix.arch }} CMark GFM
561
560
562
561
steps :
562
+
563
+ with :
564
+ path : ${{ github.workspace }}/SourceCache/swift-build
565
+ show-progress : false
566
+
563
567
564
568
with :
565
569
repository : swiftlang/swift-cmark
@@ -589,11 +593,10 @@ jobs:
589
593
echo "hash=$hash" >> $env:GITHUB_OUTPUT
590
594
591
595
- name : Setup sccache
592
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
596
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
593
597
with :
594
- max-size : 1M
595
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-cmark-gfm
596
- variant : sccache
598
+ disk-max-size : 1M
599
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-cmark-gfm
597
600
598
601
- name : Configure cmark-gfm
599
602
run : >
@@ -633,6 +636,11 @@ jobs:
633
636
name : ${{ matrix.os }} ${{ matrix.arch }} Compiler Build Tools
634
637
635
638
steps :
639
+
640
+ with :
641
+ path : ${{ github.workspace }}/SourceCache/swift-build
642
+ show-progress : false
643
+
636
644
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
637
645
with :
638
646
name : ${{ matrix.os }}-${{ matrix.arch }}-cmark-gfm-${{ inputs.swift_cmark_version }}
@@ -673,11 +681,10 @@ jobs:
673
681
echo "hash=$hash" >> $env:GITHUB_OUTPUT
674
682
675
683
- name : Setup sccache
676
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
684
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
677
685
with :
678
- max-size : 100M
679
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-build_tools
680
- variant : sccache
686
+ disk-max-size : 100M
687
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-build_tools
681
688
682
689
- name : Configure Tools
683
690
run : |
@@ -915,6 +922,11 @@ jobs:
915
922
name : ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.variant }} Toolchain
916
923
917
924
steps :
925
+
926
+ with :
927
+ path : ${{ github.workspace }}/SourceCache/swift-build
928
+ show-progress : false
929
+
918
930
- uses : thebrowsercompany/gha-download-tar-artifact@59992d91335d4ecba543c8535f7d07238e42125d # main
919
931
with :
920
932
name : ${{ inputs.build_os }}-${{ inputs.build_arch }}-build-tools
@@ -1070,11 +1082,10 @@ jobs:
1070
1082
echo "hash=$hash" >> $env:GITHUB_OUTPUT
1071
1083
1072
1084
- name : Setup sccache
1073
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
1085
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
1074
1086
with :
1075
- max-size : 500M
1076
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}-compilers
1077
- variant : sccache
1087
+ disk-max-size : 500M
1088
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.variant }}-compilers
1078
1089
1079
1090
- name : Setup context
1080
1091
id : setup-context
@@ -1316,6 +1327,11 @@ jobs:
1316
1327
name : ${{ matrix.os }} ${{ matrix.arch }} zlib
1317
1328
1318
1329
steps :
1330
+
1331
+ with :
1332
+ path : ${{ github.workspace }}/SourceCache/swift-build
1333
+ show-progress : false
1334
+
1319
1335
1320
1336
with :
1321
1337
repository : madler/zlib
@@ -1345,11 +1361,10 @@ jobs:
1345
1361
echo "hash=$hash" >> $env:GITHUB_OUTPUT
1346
1362
1347
1363
- name : Setup sccache
1348
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
1364
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
1349
1365
with :
1350
- max-size : 100M
1351
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-zlib
1352
- variant : sccache
1366
+ disk-max-size : 100M
1367
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-zlib
1353
1368
1354
1369
- uses : nttld/setup-ndk@v1
1355
1370
if : matrix.os == 'Android'
@@ -1406,6 +1421,11 @@ jobs:
1406
1421
name : ${{ matrix.os }} ${{ matrix.arch }} curl
1407
1422
1408
1423
steps :
1424
+
1425
+ with :
1426
+ path : ${{ github.workspace }}/SourceCache/swift-build
1427
+ show-progress : false
1428
+
1409
1429
1410
1430
with :
1411
1431
repository : curl/curl
@@ -1440,11 +1460,10 @@ jobs:
1440
1460
echo "hash=$hash" >> $env:GITHUB_OUTPUT
1441
1461
1442
1462
- name : Setup sccache
1443
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
1463
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
1444
1464
with :
1445
- max-size : 100M
1446
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-curl
1447
- variant : sccache
1465
+ disk-max-size : 100M
1466
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-curl
1448
1467
1449
1468
- uses : nttld/setup-ndk@v1
1450
1469
if : matrix.os == 'Android'
@@ -1577,6 +1596,11 @@ jobs:
1577
1596
name : ${{ matrix.os }} ${{ matrix.arch }} libxml2
1578
1597
1579
1598
steps :
1599
+
1600
+ with :
1601
+ path : ${{ github.workspace }}/SourceCache/swift-build
1602
+ show-progress : false
1603
+
1580
1604
1581
1605
with :
1582
1606
repository : gnome/libxml2
@@ -1607,11 +1631,10 @@ jobs:
1607
1631
echo "hash=$hash" >> $env:GITHUB_OUTPUT
1608
1632
1609
1633
- name : Setup sccache
1610
- uses : hendrikmuhs/ccache-action@2e0e89e8d74340a03f75d58d02aae4c5ee1b15c6
1634
+ uses : ./SourceCache/swift-build/.github/actions/setup-sccache
1611
1635
with :
1612
- max-size : 100M
1613
- key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-libxml2
1614
- variant : sccache
1636
+ disk-max-size : 100M
1637
+ disk-cache-key : ${{ steps.workspace_hash.outputs.hash }}-${{ matrix.os }}-${{ matrix.arch }}-libxml2
1615
1638
1616
1639
- uses : nttld/setup-ndk@v1
1617
1640
if : matrix.os == 'Android'
0 commit comments