From 4faade006c4d8cc47f72dbde76389805f5a1829d Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:48:09 +0500 Subject: [PATCH] Update ios.publish.yml Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> --- .github/workflows/ios.publish.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ios.publish.yml b/.github/workflows/ios.publish.yml index 7bc254959..1001835b5 100644 --- a/.github/workflows/ios.publish.yml +++ b/.github/workflows/ios.publish.yml @@ -14,6 +14,12 @@ jobs: - name: Setup Node uses: ./.github/actions/setup-node-with-cache + - uses: actions/cache@v2 + with: + path: '**/node_modules' + key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} + + - name: Install node modules run: | npm ci --ignore-scripts --prefer-offline --no-audit @@ -36,20 +42,16 @@ jobs: export CCACHE_DEPEND=true export CCACHE_INODECACHE=true export CCACHE_COMPILERCHECK=content - mkdir .ccache - export CCACHE_DIR=.ccache - - name: Cache ccache - uses: actions/cache@v3 + - name: ccache + uses: hendrikmuhs/ccache-action@v1.2.11 with: - path: | - .ccache - key: ${{ runner.os }}-library-ccache-${{ hashFiles(format('apps/mobile/native/ios/Podfile.lock')) }} + key: ${{ runner.os }}-ccache-${{ hashFiles(format('apps/mobile/native/ios/Podfile.lock')) }} restore-keys: | - ${{ runner.os }}-library-ccache- + ${{ runner.os }}-ccache- - name: Cache Pods - uses: actions/cache@v3 + uses: actions/cache@v2 id: pods-cache with: path: apps/mobile/native/ios/Pods