Skip to content

Commit

Permalink
Fixing Caching
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion authored Jan 14, 2025
1 parent 2fdc7c1 commit f7ceed4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/OSVer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,27 @@ jobs:
echo "PLATFORM=tvOS Simulator" >> $GITHUB_ENV
echo "SDK=appletvsimulator" >> $GITHUB_ENV
;;
esac
esac
- uses: irgaly/xcode-cache@v1
if: matrix.type
with:
key: xcode-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
xcode-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}-${{ env.cache-name }
xcode-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}
- name: Cache swift package modules
id: cache-spm-macos
if: "!matrix.type"
uses: actions/cache@v4
env:
cache-name: cache-spm
with:
path: .build
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
key: spm-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}-${{ env.cache-name }}-${{ hashFiles('Package.resolved') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
spm-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}-${{ env.cache-name }
spm-${{ runner.os }}-${{ matrix.runs-on }}-${{ env.XCODE_NAME }}
- name: Build SPM
if: "!matrix.type"
Expand Down

0 comments on commit f7ceed4

Please sign in to comment.