Skip to content

Commit 50a3853

Browse files
committed
build(test): centralize ccache env var settings
eliminates repetition in iOS build now that it is a matrix, other platform only used them once but best to follow same pattern as ios build
1 parent 702d984 commit 50a3853

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.github/workflows/tests_e2e_ios.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
timeout-minutes: 60
3333
env:
3434
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
35+
CCACHE_SLOPPINESS: clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
36+
CCACHE_FILECLONE: true
37+
CCACHE_DEPEND: true
38+
CCACHE_INODECACHE: true
39+
CCACHE_LIMIT_MULTIPLE: 0.95
3540
strategy:
3641
fail-fast: false
3742
matrix:
@@ -152,11 +157,6 @@ jobs:
152157
- name: Build iOS App Debug
153158
if: contains(matrix.buildmode, 'debug')
154159
run: |
155-
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
156-
export CCACHE_FILECLONE=true
157-
export CCACHE_DEPEND=true
158-
export CCACHE_INODECACHE=true
159-
export CCACHE_LIMIT_MULTIPLE=0.95
160160
ccache -s
161161
export SKIP_BUNDLING=1
162162
export RCT_NO_LAUNCH_PACKAGER=1
@@ -170,11 +170,6 @@ jobs:
170170
- name: Build iOS App Release
171171
if: contains(matrix.buildmode, 'release')
172172
run: |
173-
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
174-
export CCACHE_FILECLONE=true
175-
export CCACHE_DEPEND=true
176-
export CCACHE_INODECACHE=true
177-
export CCACHE_LIMIT_MULTIPLE=0.95
178173
ccache -s
179174
export RCT_NO_LAUNCH_PACKAGER=1
180175
set -o pipefail

.github/workflows/tests_e2e_other.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
timeout-minutes: 100
3232
env:
3333
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
34+
CCACHE_SLOPPINESS: clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
35+
CCACHE_FILECLONE: true
36+
CCACHE_DEPEND: true
37+
CCACHE_INODECACHE: true
38+
CCACHE_LIMIT_MULTIPLE: 0.95
3439
steps:
3540
- uses: actions/setup-node@v4
3641
with:
@@ -129,11 +134,6 @@ jobs:
129134

130135
- name: Build macos App
131136
run: |
132-
export CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros
133-
export CCACHE_FILECLONE=true
134-
export CCACHE_DEPEND=true
135-
export CCACHE_INODECACHE=true
136-
export CCACHE_LIMIT_MULTIPLE=0.95
137137
ccache -s
138138
export SKIP_BUNDLING=1
139139
export RCT_NO_LAUNCH_PACKAGER=1

0 commit comments

Comments
 (0)