diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ccb2b1e..a82ef7c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,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-test-macos-26-swift6.3-${{ hashFiles('Package.resolved') }} - name: Build run: swift build -v lint: @@ -57,6 +65,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 --allow-writing-to-directory "$RUNNER_TEMP/docs" \ diff --git a/.github/workflows/periphery.yml b/.github/workflows/periphery.yml index 5e6531f..64e9c4f 100644 --- a/.github/workflows/periphery.yml +++ b/.github/workflows/periphery.yml @@ -15,6 +15,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-26-swift6.3-${{ hashFiles('Package.resolved') }} - name: Install Periphery run: brew install periphery - name: Run Periphery