From cf152ae13aace8eb8477031c610151d4d05ca73c Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Wed, 10 Jan 2024 14:39:45 +0000 Subject: [PATCH 1/2] feat: replace buildcache with ccache --- .github/workflows/e2e-ios.yml | 12 ++++++++++-- ios/Podfile | 8 +++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/e2e-ios.yml b/.github/workflows/e2e-ios.yml index 824c19c30..5192d24fc 100644 --- a/.github/workflows/e2e-ios.yml +++ b/.github/workflows/e2e-ios.yml @@ -17,8 +17,16 @@ jobs: with: fetch-depth: 1 - - name: Setup Buildcache - uses: mikehardy/buildcache-action@v2 + - name: Which gcc + run: which gcc + + - name: Ccache + uses: hendrikmuhs/ccache-action@v1.2 + with: + create-symlink: true + + - name: Which gcc + run: which gcc - name: Setup Docker Colima 1 uses: limpbrains/setup-docker-macos-action@e4216b347f8992aa26308d9a0a43216f4386b278 diff --git a/ios/Podfile b/ios/Podfile index 2b5985365..050398f03 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -69,9 +69,9 @@ target 'bitkit' do config[:reactNativePath], :mac_catalyst_enabled => false ) - __apply_Xcode_12_5_M1_post_install_workaround(installer) - # buildcache begin + # ccache begin + # https://reactnative.dev/docs/build-speed#xcode-specific-setup installer.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings["CC"] = "clang" @@ -80,6 +80,8 @@ target 'bitkit' do config.build_settings["LDPLUSPLUS"] = "clang++" end end - # buildcache end + # ccache end + + __apply_Xcode_12_5_M1_post_install_workaround(installer) end end From 477072b5e19418572205c891ff8ce94854ddec48 Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Thu, 18 Jan 2024 17:44:14 +0000 Subject: [PATCH 2/2] fix: ccache confg --- .github/workflows/e2e-ios.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/e2e-ios.yml b/.github/workflows/e2e-ios.yml index 5192d24fc..559e2d79b 100644 --- a/.github/workflows/e2e-ios.yml +++ b/.github/workflows/e2e-ios.yml @@ -6,6 +6,10 @@ env: NO_FLIPPER: 1 E2E_TESTS: 1 # build without transform-remove-console babel plugin DEBUG: 'lnurl* lnurl server' + CCACHE_SLOPPINESS: clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros + CCACHE_FILECLONE: true + CCACHE_DEPEND: true + CCACHE_INODECACHE: true jobs: e2e: