Skip to content

Commit b7421c1

Browse files
committed
test(e2e, ios): buildcache via an action vs in situ
1 parent 684bb50 commit b7421c1

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

.github/workflows/tests_e2e_ios.yml

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -116,45 +116,18 @@ jobs:
116116
max_attempts: 3
117117
command: yarn tests:ios:pod:install
118118

119-
- uses: actions/cache@v2
120-
name: Buildcache Cache
121-
id: buildcache-cache
119+
- uses: mikehardy/buildcache-action@v1
120+
name: Buildcache
122121
with:
123-
path: ~/.buildcache
124122
key: ${{ runner.os }}-v1
125123

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-
147124
- name: Build iOS App
148125
run: |
149-
$HOME/buildcache/bin/buildcache -c
150-
$HOME/buildcache/bin/buildcache -s
151-
which clang
152126
export SKIP_BUNDLING=1
153127
export RCT_NO_LAUNCH_PACKAGER=1
154128
cd tests
155129
set -o pipefail
156130
./node_modules/.bin/detox build --configuration ios.sim.debug
157-
$HOME/buildcache/bin/buildcache -s
158131
shell: bash
159132

160133
- name: Install applesimutils
@@ -194,7 +167,7 @@ jobs:
194167
if: always()
195168
with:
196169
name: buildcache_log
197-
path: $BUILDCACHE_LOG_FILE
170+
path: ./.buildcache/buildcache.log
198171

199172
- name: Compress Simulator Log
200173
if: always()

0 commit comments

Comments
 (0)