@@ -116,45 +116,18 @@ jobs:
116
116
max_attempts : 3
117
117
command : yarn tests:ios:pod:install
118
118
119
- - uses : actions/cache@v2
120
- name : Buildcache Cache
121
- id : buildcache-cache
119
+ - uses : mikehardy/buildcache-action@v1
120
+ name : Buildcache
122
121
with :
123
- path : ~/.buildcache
124
122
key : ${{ runner.os }}-v1
125
123
126
- - name : Fetch buildcache
127
- uses : nick-invision/retry@v2
128
- with :
129
- timeout_minutes : 10
130
- retry_wait_seconds : 60
131
- max_attempts : 3
132
- command : cd $HOME && curl -s https://api.github.com/repos/mbitsnbites/buildcache/releases/latest | grep -o "https://.*macos\.zip" | xargs curl -fsLJO
133
-
134
- - name : Install buildcache
135
- run : |
136
- pwd
137
- cd $HOME
138
- ls -la
139
- unzip buildcache-macos.zip
140
- ln -s $HOME/buildcache/bin/buildcache $HOME/buildcache/bin/clang
141
- ln -s $HOME/buildcache/bin/buildcache $HOME/buildcache/bin/clang++
142
- echo "BUILDCACHE_MAX_CACHE_SIZE=525288000" >> $GITHUB_ENV
143
- echo "BUILDCACHE_DEBUG=2" >> $GITHUB_ENV
144
- echo "BUILDCACHE_LOG_FILE=$HOME/buildcache.log" >> $GITHUB_ENV
145
- echo $HOME/buildcache/bin >> $GITHUB_PATH
146
-
147
124
- name : Build iOS App
148
125
run : |
149
- $HOME/buildcache/bin/buildcache -c
150
- $HOME/buildcache/bin/buildcache -s
151
- which clang
152
126
export SKIP_BUNDLING=1
153
127
export RCT_NO_LAUNCH_PACKAGER=1
154
128
cd tests
155
129
set -o pipefail
156
130
./node_modules/.bin/detox build --configuration ios.sim.debug
157
- $HOME/buildcache/bin/buildcache -s
158
131
shell : bash
159
132
160
133
- name : Install applesimutils
@@ -194,7 +167,7 @@ jobs:
194
167
if : always()
195
168
with :
196
169
name : buildcache_log
197
- path : $BUILDCACHE_LOG_FILE
170
+ path : ./.buildcache/buildcache.log
198
171
199
172
- name : Compress Simulator Log
200
173
if : always()
0 commit comments