diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe64425..86e24f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,14 @@ jobs: - uses: SwiftyLab/setup-swift@latest with: swift-version: ${{ matrix.swift }} + - name: Cache SwiftPM build products + uses: actions/cache@v6 + with: + path: | + .build + ~/.cache/org.swift.swiftpm + ~/Library/Caches/org.swift.swiftpm + key: swiftpm-test-${{ matrix.os }}-swift${{ matrix.swift }}-${{ hashFiles('Package.resolved') }} - name: Build run: swift build -v - name: Test @@ -55,6 +63,14 @@ jobs: - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" + - name: Cache SwiftPM build products + uses: actions/cache@v6 + with: + path: | + .build + ~/.cache/org.swift.swiftpm + ~/Library/Caches/org.swift.swiftpm + key: swiftpm-docs-macos-26-swift6.3-${{ hashFiles('Package.resolved') }} - name: Build documentation run: | swift package \ diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 1ab7135..1039e32 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -25,6 +25,14 @@ jobs: - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" + - name: Cache SwiftPM build products + uses: actions/cache@v6 + with: + path: | + .build + ~/.cache/org.swift.swiftpm + ~/Library/Caches/org.swift.swiftpm + key: swiftpm-docs-macos-26-swift6.3-${{ hashFiles('Package.resolved') }} - name: Build run: | swift package \ diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index 4c9d3b9..a5dcf32 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -12,6 +12,14 @@ jobs: - uses: SwiftyLab/setup-swift@latest with: swift-version: "6.3" + - name: Cache SwiftPM build products + uses: actions/cache@v6 + with: + path: | + .build + ~/.cache/org.swift.swiftpm + ~/Library/Caches/org.swift.swiftpm + key: swiftpm-periphery-macos-latest-swift6.3-${{ hashFiles('Package.resolved') }} - name: Install Periphery run: brew install peripheryapp/periphery/periphery - name: Run Periphery