Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace buildcache with ccache #1482

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/e2e-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -17,8 +21,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
Expand Down
8 changes: 5 additions & 3 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Loading