Skip to content

Commit

Permalink
Cache pods
Browse files Browse the repository at this point in the history
  • Loading branch information
Widcket committed Aug 21, 2023
1 parent 89dcc3a commit 38ec507
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,28 @@ jobs:
xcode: ${{ env.xcode }}
action: none

- name: Save Xcode version
run: xcodebuild -version | tee .xcode-version

- id: restore-pods-cache
name: Restore Pods cache
uses: actions/cache/restore@f5ce41475b483ad7581884324a6eca9f48f8dcc7
with:
path: auth0_flutter/example/ios/Pods
key: pods-${{ hashFiles('Podfile.lock') }}-${{ hashFiles('.xcode-version') }}-v1

- name: Install pods
working-directory: auth0_flutter/example/ios
run: pod install

- name: Save Pods cache
id: save-pods-cache
uses: actions/cache/save@f5ce41475b483ad7581884324a6eca9f48f8dcc7
if: steps.restore-pods-cache.outputs.cache-hit != 'true'
with:
path: auth0_flutter/example/ios/Pods
key: pods-${{ hashFiles('Podfile.lock') }}-${{ hashFiles('.xcode-version') }}-v1

- name: Set .env
working-directory: auth0_flutter/example/ios
run: printf '%s\n%s\n%s' "AUTH0_DOMAIN=$AUTH0_DOMAIN" "AUTH0_CLIENT_ID=$AUTH0_CLIENT_ID" 'AUTH0_CUSTOM_SCHEME=demo' >> ../.env
Expand Down

0 comments on commit 38ec507

Please sign in to comment.