Browse Source

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 1 year ago
parent
commit
41ff720561
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/license-check.sh

+ 4 - 0
scripts/license-check.sh

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