Skip to content

Commit

Permalink
ci: sdk cache key must include static files
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Apr 29, 2022
1 parent ae32ed0 commit a164726
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:

- name: Get submodules status
run: git submodule status | tee submodules-status


- run: cp -r package-dev/Plugins/${{ inputs.target }} sdk-static
shell: bash

- name: Restore from cache
uses: actions/cache@v2
id: cache
Expand All @@ -32,7 +35,7 @@ jobs:
path: |
package-dev/Plugins
modules/sentry-java/sentry-android-ndk/build/intermediates/merged_native_libs/release/out/lib
key: sdk=${{ inputs.target }}-${{ hashFiles('submodules-status', 'package/package.json', 'Directory.Build.targets', 'package-dev/Plugins/${{ inputs.target }}/**') }}
key: sdk=${{ inputs.target }}-${{ hashFiles('submodules-status', 'package/package.json', 'Directory.Build.targets', 'sdk-static/**') }}

- name: Checkout submodules
if: steps.cache.outputs.cache-hit != 'true'
Expand Down

0 comments on commit a164726

Please sign in to comment.