From c9bff4e69b387287ec01c8537cffe79d0c903bcb Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Tue, 30 Jan 2024 18:19:59 +0500 Subject: [PATCH] Update ios.publish.yml Signed-off-by: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> --- .github/workflows/ios.publish.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ios.publish.yml b/.github/workflows/ios.publish.yml index 823fd8422..d2a95029d 100644 --- a/.github/workflows/ios.publish.yml +++ b/.github/workflows/ios.publish.yml @@ -27,29 +27,24 @@ jobs: - name: Build packages run: npx nx run @notesnook/mobile:build - - - name: Setup ccache - run: | - brew install ccache - ln -s $(which ccache) /usr/local/bin/gcc - ln -s $(which ccache) /usr/local/bin/g++ - ln -s $(which ccache) /usr/local/bin/cc - ln -s $(which ccache) /usr/local/bin/c++ - ln -s $(which ccache) /usr/local/bin/clang - ln -s $(which ccache) /usr/local/bin/clang++ - export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros - export CCACHE_FILECLONE=true - export CCACHE_DEPEND=true - export CCACHE_INODECACHE=true - export CCACHE_COMPILERCHECK=content - name: ccache uses: hendrikmuhs/ccache-action@v1.2.11 with: key: ${{ runner.os }}-ccache-${{ hashFiles(format('apps/mobile/native/ios/Podfile.lock')) }} - create-symlink: true + max-size: 1500M restore-keys: | - ${{ runner.os }}-ccache- + ${{ runner.os }}-ccache- + + - name: Setup ccache + run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" + export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros + export CCACHE_FILECLONE=true + export CCACHE_DEPEND=true + export CCACHE_INODECACHE=true + export CCACHE_LIMIT_MULTIPLE=0.95 + ccache -s - name: Cache Pods uses: actions/cache@v2