ci: maybe improve build-ios workflow
This commit is contained in:
parent
917775ee07
commit
b156ad77d2
33
.github/workflows/build.yml
vendored
33
.github/workflows/build.yml
vendored
@ -105,12 +105,43 @@ jobs:
|
||||
with:
|
||||
xcode-version: ${{ env.XCODE_VERSION }}
|
||||
|
||||
- name: Install ccache
|
||||
if: env.turbo_cache_hit != 1
|
||||
run: brew install ccache
|
||||
|
||||
- name: Cache ccache
|
||||
if: env.turbo_cache_hit != 1
|
||||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
||||
with:
|
||||
path: ~/Library/Caches/ccache
|
||||
key: ${{ runner.os }}-ccache-ios-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-ccache-ios-
|
||||
|
||||
- name: Cache Xcode Derived Data
|
||||
if: env.turbo_cache_hit != 1
|
||||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
||||
with:
|
||||
path: ~/Library/Developer/Xcode/DerivedData
|
||||
key: ${{ runner.os }}-derived-data-${{ hashFiles('example/bare/ios/Podfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-derived-data-
|
||||
|
||||
- name: Cache CocoaPods
|
||||
if: env.turbo_cache_hit != 1
|
||||
id: cocoapods-cache
|
||||
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
|
||||
with:
|
||||
path: example/bare/ios/Pods
|
||||
key: ${{ runner.os }}-pods-${{ hashFiles('example/bare/ios/Podfile.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pods-
|
||||
|
||||
- name: Install cocoapods
|
||||
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
cd example/bare
|
||||
bundle install
|
||||
bundle exec pod repo update --verbose
|
||||
bundle exec pod install --project-directory=ios
|
||||
|
||||
- name: Build example for iOS
|
||||
|
||||
@ -31,7 +31,7 @@ target 'TrueSheetExample' do
|
||||
installer,
|
||||
config[:reactNativePath],
|
||||
:mac_catalyst_enabled => false,
|
||||
# :ccache_enabled => true
|
||||
:ccache_enabled => true
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user