Skip to content

Commit

Permalink
fix cache keys
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Jul 3, 2024
1 parent bf086b1 commit 2859e95
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ jobs:
cache-name: swiftpm
with:
path: .build
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Disable SwiftLint Plugin
Expand Down Expand Up @@ -73,9 +74,10 @@ jobs:
path: |
Demo/.build
Demo/Tools/.build
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Cache DerivedData
Expand All @@ -84,9 +86,10 @@ jobs:
cache-name: derived-data
with:
path: Demo/DerivedData
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Disable SwiftLint Plugin
Expand Down Expand Up @@ -118,9 +121,10 @@ jobs:
path: |
DemoWithPackage/.build
DemoWithPackage/Tools/.build
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Cache DerivedData
Expand All @@ -129,9 +133,10 @@ jobs:
cache-name: derived-data
with:
path: DemoWithPackage/DerivedData
key: ${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
key: ${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-${{ github.job }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-${{ env.cache-name }}-
${{ runner.os }}-${{ github.job }}-${{ matrix.xcode_version }}-
${{ runner.os }}-${{ github.job }}-
${{ runner.os }}-
- name: Disable SwiftLint Plugin
Expand Down

0 comments on commit 2859e95

Please sign in to comment.