From 506e868a91e83dfe90895c3ed8a3739c1e7ecd4b Mon Sep 17 00:00:00 2001 From: Gereon Steffens Date: Sat, 5 Oct 2024 11:41:37 +0200 Subject: [PATCH] add SPM cache --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06bec20..f969c7d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,16 @@ jobs: runs-on: macos-14 steps: - uses: actions/checkout@v4 + + - uses: actions/cache@v2 + with: + path: .build + key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} + restore-keys: | + ${{ runner.os }}-spm- + - name: Build run: swift build + - name: Test run: swift test --filter "AoCTests.Day.*Tests/testDay.*_part[12]\(\)"