From b5834cfc76e75db71128c8e640dc144bd40628b2 Mon Sep 17 00:00:00 2001 From: Islam <2553451+qalandarov@users.noreply.github.com> Date: Fri, 3 Apr 2026 02:37:20 +0100 Subject: [PATCH] Cache CI build artifacts (#1085) Co-authored-by: jack <212554440+jackjackbits@users.noreply.github.com> --- .github/workflows/swift-tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/swift-tests.yml b/.github/workflows/swift-tests.yml index 372e4b0e..0526e6ca 100644 --- a/.github/workflows/swift-tests.yml +++ b/.github/workflows/swift-tests.yml @@ -20,6 +20,15 @@ jobs: - name: Set up Swift uses: swift-actions/setup-swift@v2 + - name: Cache build artifacts + uses: actions/cache@v4 + with: + path: .build + key: ${{ runner.os }}-build-${{ hashFiles('**/*.swift', '**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-build-${{ hashFiles('**/Package.resolved') }} + ${{ runner.os }}-build- + - name: Build the package run: swift build