Skip to content

Instantly share code, notes, and snippets.

@shafayathossain
Created December 3, 2021 04:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shafayathossain/9c562be74027532231d84523a16c527b to your computer and use it in GitHub Desktop.
Save shafayathossain/9c562be74027532231d84523a16c527b to your computer and use it in GitHub Desktop.
Step to cache Ruby dependencies and Gradle packages
- name: Cache Ruby dependencies
uses: actions/cache@v2
with:
path: 'vendor/bundle'
key: ${{ runner.os }}-gems-${{ secrets.GEMS_CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment