Skip to content

Commit

Permalink
Try to improve caching of GitHub Actions.
Browse files Browse the repository at this point in the history
I saw caches getting restored, and then buildout still taking more than 15 minutes.
I expect this is because we restore a cache with for example Python 3.7 eggs in a Python 3.9 job.
  • Loading branch information
mauritsvanrees committed Apr 14, 2022
1 parent ab37f0c commit 422c0b1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
with:
path: |
eggs
key: eggs-${{ hashFiles('versions*.cfg') }}
restore-keys: eggs-
key: eggs-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('versions*.cfg') }}
restore-keys: |
eggs-${{ matrix.python-version }}-${{ runner.os }}-
eggs-${{ matrix.python-version }}-
- name: Run buildout
run: |
buildout -c bare.cfg buildout:git-clone-depth=1
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ecosystem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
with:
path: |
eggs
key: eggs-${{ hashFiles('versions*.cfg') }}
restore-keys: eggs-
key: eggs-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('versions*.cfg') }}
restore-keys: |
eggs-${{ matrix.python-version }}-${{ runner.os }}-
eggs-${{ matrix.python-version }}-
- name: Run buildout
run: |
buildout -c ecosystem.cfg buildout:git-clone-depth=1
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/run-buildout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
with:
path: |
eggs
key: eggs-${{ hashFiles('versions*.cfg') }}
restore-keys: eggs-
key: eggs-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('versions*.cfg') }}
restore-keys: |
eggs-${{ matrix.python-version }}-${{ runner.os }}-
eggs-${{ matrix.python-version }}-
- name: Run buildout
run: |
buildout buildout:git-clone-depth=1
6 changes: 4 additions & 2 deletions .github/workflows/versioncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ jobs:
with:
path: |
eggs
key: eggs-${{ hashFiles('versions*.cfg') }}
restore-keys: eggs-
key: eggs-${{ matrix.python-version }}-${{ runner.os }}-${{ hashFiles('versions*.cfg') }}
restore-keys: |
eggs-${{ matrix.python-version }}-${{ runner.os }}-
eggs-${{ matrix.python-version }}-
- name: Run buildout
run: |
buildout buildout:git-clone-depth=1
Expand Down

0 comments on commit 422c0b1

Please sign in to comment.