Skip to content

Commit

Permalink
test(e2e, ios): add ccache to ios e2e run to speed up build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehardy committed Apr 30, 2021
1 parent 5f9acaa commit de4aa82
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/tests_e2e_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,25 @@ jobs:
max_attempts: 3
command: yarn tests:ios:pod:install

- name: ccache
uses: hendrikmuhs/ccache-action@v1
with:
key: ${{ matrix.os }}
max-size: 500M

- name: configure-ccache
run: |
echo /usr/lib/ccache:/usr/local/opt/ccache/libexec >> $GITHUB_PATH
ccache --set-config=sloppiness=pch_defines,time_macros,file_macro,include_file_mtime,include_file_ctime,file_stat_matches,modules,clang_index_store,system_headers,ivfsoverlay
ccache --set-config=depend_mode=true
ccache --set-config=file_clone=true
ccache --set-config=inode_cache=true
ccache -p
ccache -s
- name: Build iOS App
run: |
which clang
export SKIP_BUNDLING=1
export RCT_NO_LAUNCH_PACKAGER=1
cd tests
Expand Down
4 changes: 2 additions & 2 deletions tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
"configurations": {
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/testing.app",
"build": "xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -UseModernBuildSystem=YES",
"build": "xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -UseModernBuildSystem=YES",
"type": "ios.simulator",
"device": {
"type": "iPhone 11"
}
},
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/testing.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testing.xcworkspace -scheme testing -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -UseModernBuildSystem=YES",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testing.xcworkspace -scheme testing -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -UseModernBuildSystem=YES",
"type": "ios.simulator",
"device": {
"type": "iPhone 11"
Expand Down

0 comments on commit de4aa82

Please sign in to comment.