From 675bdc63ae1cc9b3d17ccfe88d88529033813745 Mon Sep 17 00:00:00 2001 From: mahee96 <47920326+mahee96@users.noreply.github.com> Date: Tue, 24 Feb 2026 02:59:08 +0530 Subject: [PATCH] CI: improve more ci worflow --- .github/workflows/nightly.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 15acf364..a045be51 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -56,16 +56,24 @@ jobs: with: xcode-version: '26.2' - - name: Restore Cache - id: xcode-cache + - name: Restore Cache (exact) + id: xcode-cache-exact uses: actions/cache/restore@v3 with: path: | ~/Library/Developer/Xcode/DerivedData ~/Library/Caches/org.swift.swiftpm key: xcode-build-cache-${{ github.ref_name }}-${{ github.sha }} - restore-keys: | - xcode-build-cache-${{ github.ref_name }}- + + - name: Restore Cache (last) + if: steps.xcode-cache-exact.outputs.cache-hit != 'true' + id: xcode-cache-fallback + uses: actions/cache/restore@v3 + with: + path: | + ~/Library/Developer/Xcode/DerivedData + ~/Library/Caches/org.swift.swiftpm + key: xcode-build-cache-${{ github.ref_name }}- # -------------------------------------------------- # build and test @@ -104,7 +112,7 @@ jobs: exit $STATUS - name: Save Cache - if: ${{ steps.xcode-cache.outputs.cache-hit != 'true' }} + if: ${{ steps.xcode-cache-fallback.outputs.cache-hit != 'true' }} uses: actions/cache/save@v3 with: path: |