Ver Fonte

Cache swift-format (#1887)

Motivation:

The CI takes ~7 minutes to run, the longest job is the formatting check
which spends most of its time compiling swift-format.

Modifications:

- Cache the swift-format build directory

Result:

Faster CI
George Barnett há 1 ano atrás
pai
commit
41ff720561
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      scripts/license-check.sh

+ 4 - 0
scripts/license-check.sh

@@ -102,6 +102,10 @@ check_copyright_headers() {
     ! -name '*.grpc.swift' \
     ! -name 'LinuxMain.swift' \
     ! -name 'XCTestManifests.swift' \
+    ! -path './FuzzTesting/.build/*' \
+    ! -path './Performance/QPSBenchmark/.build/*' \
+    ! -path './Performance/Benchmarks/.build/*' \
+    ! -path './scripts/.swift-format-source/*' \
     ! -path './.build/*')
 }