From 34f85d9a4bf18f84fe77110f7fb814ec39805582 Mon Sep 17 00:00:00 2001 From: HUI Date: Thu, 9 Nov 2023 14:49:33 +0800 Subject: [PATCH] chore: wip --- .github/actions/setup/action.yml | 7 +++++++ .github/workflows/build.yml | 5 ----- .github/workflows/ci.yml | 5 ----- .github/workflows/dep.yml | 10 ++++++++++ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index bedf7a15..1166d336 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -9,6 +9,13 @@ runs: with: node-version-file: .nvmrc + - name: Setup cocoapods + if: ${{ runner.os == 'macOS' }} + run: | + gem install cocoapods -v 1.13.0 + gem install activesupport -v 7.0.8 + shell: bash + - name: Cache dependencies id: yarn-cache uses: actions/cache@v3 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b80b34d5..63e101d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,11 +93,6 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Setup cocoapods - run: | - gem install cocoapods -v 1.13.0 - gem install activesupport -v 7.0.8 - - name: Cache turborepo for iOS uses: actions/cache@v3 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e23c5b59..4d0cbf44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,11 +159,6 @@ jobs: - name: Setup uses: ./.github/actions/setup - - name: Setup cocoapods - run: | - gem install cocoapods -v 1.13.0 - gem install activesupport -v 7.0.8 - - name: Cache turborepo for iOS uses: actions/cache@v3 with: diff --git a/.github/workflows/dep.yml b/.github/workflows/dep.yml index 9715f521..2b7e842d 100644 --- a/.github/workflows/dep.yml +++ b/.github/workflows/dep.yml @@ -60,6 +60,16 @@ jobs: - name: Setup uses: ./.github/actions/setup + - name: Cache cocoapods + id: cocoapods-cache + uses: actions/cache@v3 + with: + path: | + **/ios/Pods + key: ${{ runner.os }}-cocoapods-0-${{ hashFiles('example/ios/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-cocoapods-0- + - name: Update Podfile.lock run: | pod update