Skip to content

Commit

Permalink
ci: library cache should be keyed on patches
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Jul 17, 2021
1 parent 9e6e6ac commit 4baf430
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test
Expand All @@ -111,7 +111,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test
Expand All @@ -197,7 +197,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind
Expand All @@ -222,7 +222,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-macos-${{hashFiles('**/dependencies.yml')}}
key: ports-macos-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

Expand Down Expand Up @@ -251,7 +251,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-windows-${{hashFiles('**/dependencies.yml')}}
key: ports-windows-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gem-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ports/archives
key: tarballs-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: tarballs-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: ./scripts/test-gem-build gems ruby
- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -119,7 +119,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ports/archives
key: tarballs-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: tarballs-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: "./scripts/test-gem-build gems ${{matrix.plat}}"
- uses: actions/upload-artifact@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/truffle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ports/archives
key: tarballs-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: tarballs-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle install --local || bundle install
- run: bundle exec rake compile -- ${{matrix.flags}}
- run: bundle exec rake test
6 changes: 3 additions & 3 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-${{matrix.plat}}-${{hashFiles('**/dependencies.yml')}}
key: ports-${{matrix.plat}}-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test

Expand All @@ -118,7 +118,7 @@ jobs:
if: matrix.sys == 'disable'
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- run: bundle exec rake compile -- --${{matrix.sys}}-system-libraries
- run: bundle exec rake test:valgrind

Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
- uses: actions/cache@v2
with:
path: ports
key: ports-ubuntu-${{hashFiles('**/dependencies.yml')}}
key: ports-ubuntu-${{hashFiles('dependencies.yml', 'patches/**/*.patch')}}
- name: Update html5lib-tests
run: |
cd test/html5lib-tests
Expand Down

0 comments on commit 4baf430

Please sign in to comment.