Skip to content

Commit

Permalink
update cache handeling
Browse files Browse the repository at this point in the history
  • Loading branch information
SwenVanZanten committed Jul 5, 2021
1 parent 3306a3b commit 48e8f04
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ jobs:
- name: Cache modules
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/android/.gradle/caches
${{ github.workspace }}/android/.gradle/wrapper
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', '**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-gradle-
- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,23 @@ on: [push, pull_request]

jobs:
build:
runs-on: macOS-latest
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup BuildCache
uses: mikehardy/buildcache-action@v1
- name: Cache modules
uses: actions/cache@v2
with:
path: ${{ github.workspace }}/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
path: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/ios/Pods
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock', '**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pods-
- name: Use Node.js
uses: actions/setup-node@v2
with:
Expand Down Expand Up @@ -47,7 +54,7 @@ jobs:
deploy:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: macOS-latest
runs-on: macos-latest

steps:
- name: Download Release Artifact
Expand Down

0 comments on commit 48e8f04

Please sign in to comment.