From 38ec507a7052adb99c62b3218703d3041c5cc661 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Mon, 21 Aug 2023 20:53:03 +0100 Subject: [PATCH] Cache pods --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a8cd58b4..06a03252 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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