Skip to content

Commit 7644de3

Browse files
committed
CI: Cache based on the Swift image
- Instead of manually controlling part of the key, use the Swift image name. With the Swift 5.0.x image, we've seen things not be there (zlib header), so this should ensure the fact that configure could act differently on each Swift image will be better handled.
1 parent 604c4a1 commit 7644de3

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@ jobs:
1818
# tag: "ref/tags/v3.11.4"
1919
# branch: "ref/heads/master"
2020
protobuf_git: ["ref/heads/master"]
21-
include:
22-
- swift: "5.2.4-bionic"
23-
platform: "ubuntu-18.04"
24-
- swift: "5.1.5-bionic"
25-
platform: "ubuntu-18.04"
26-
- swift: "5.0.3-bionic"
27-
platform: "ubuntu-18.04"
28-
- swift: "4.2.4"
29-
platform: "ubuntu-16.04"
3021
container:
3122
image: swift:${{ matrix.swift }}
3223
steps:
@@ -65,7 +56,7 @@ jobs:
6556
with:
6657
path: protobuf
6758
# NOTE: for refs that can float like 'master' the cache might be out of date!
68-
key: ${{ runner.os }}-${{ matrix.platform}}-protobuf-${{ steps.get-sha.outputs.sha }}
59+
key: ${{ runner.os }}-${{ matrix.swift}}-protobuf-${{ steps.get-sha.outputs.sha }}
6960
- name: Checkout protobuf repo
7061
if: steps.cache-protobuf.outputs.cache-hit != 'true'
7162
uses: actions/checkout@v2

0 commit comments

Comments
 (0)