From 82e60be1ef7c289c384d9a0bbe507adb9b8c76b3 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Mon, 11 Mar 2024 21:45:54 +0100 Subject: [PATCH] Update CI steps --- .github/workflows/ci.yml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e650f624..8adcdf85 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,18 +65,6 @@ jobs: echo "turbo_cache_hit=1" >> $GITHUB_ENV fi - # - name: Install JDK - # if: env.turbo_cache_hit != 1 - # uses: actions/setup-java@v3 - # with: - # distribution: 'zulu' - # java-version: '17' - - # - name: Finalize Android SDK - # if: env.turbo_cache_hit != 1 - # run: | - # /bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null" - - name: Cache Gradle if: env.turbo_cache_hit != 1 uses: actions/cache@v3 @@ -100,7 +88,7 @@ jobs: TURBO_CACHE_DIR: .turbo/ios steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/setup @@ -126,16 +114,16 @@ jobs: echo "turbo_cache_hit=1" >> $GITHUB_ENV fi - # - name: Cache cocoapods - # if: env.turbo_cache_hit != 1 - # id: cocoapods-cache - # uses: actions/cache@v3 - # with: - # path: | - # **/ios/Pods - # key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }} - # restore-keys: | - # ${{ runner.os }}-cocoapods- + - name: Cache cocoapods + if: env.turbo_cache_hit != 1 + id: cocoapods-cache + uses: actions/cache@v3 + with: + path: | + **/ios/Pods + key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-cocoapods- - name: Install cocoapods # if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'