Skip to content

Commit

Permalink
Ensure cached archives are cleared for upgrades
Browse files Browse the repository at this point in the history
Instead of caching the downloaded archives for RE2 and Abseil based on
the contents of extconf.rb, cache them based on the contents of
dependencies.yml which will change every time the archives are updated.
  • Loading branch information
mudge committed May 10, 2024
1 parent ad84b59 commit 8403f04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/precompile-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ports/archives
key: archives-ubuntu-${{ hashFiles('ext/re2/extconf.rb') }}
key: archives-ubuntu-${{ hashFiles('dependencies.yml') }}
- run: bundle exec rake gem:${{ inputs.platform }}
- uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ports/archives
key: archives-ubuntu-${{ hashFiles('ext/re2/extconf.rb') }}
key: archives-ubuntu-${{ hashFiles('dependencies.yml') }}
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
Expand Down Expand Up @@ -462,7 +462,7 @@ jobs:
- uses: actions/cache@v4
with:
path: ports/archives
key: archives-ubuntu-${{ hashFiles('ext/re2/extconf.rb') }}
key: archives-ubuntu-${{ hashFiles('dependencies.yml') }}
- uses: ruby/setup-ruby-pkgs@v1
with:
ruby-version: "3.3"
Expand Down

0 comments on commit 8403f04

Please sign in to comment.