Skip to content

Commit fa95353

Browse files
author
MarcoFalke
committed
ci: Run macos tasks in a git archive, not git checkout
This confirms that compiling this way is possible at all.
1 parent faf99ae commit fa95353

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138

139139
env:
140140
DANGER_RUN_CI_ON_HOST: 1
141-
BASE_ROOT_DIR: ${{ github.workspace }}
141+
BASE_ROOT_DIR: ${{ github.workspace }}/repo_archive
142142

143143
steps:
144144
- &CHECKOUT
@@ -176,8 +176,16 @@ jobs:
176176
key: ${{ github.job }}-${{ matrix.job-type }}-ccache-${{ github.run_id }}
177177
restore-keys: ${{ github.job }}-${{ matrix.job-type }}-ccache-
178178

179+
- name: Create git archive
180+
run: |
181+
git log -1
182+
git archive --format=tar --prefix=repo_archive/ --output=repo.tar HEAD
183+
tar -xf repo.tar
184+
179185
- name: CI script
180-
run: ./ci/test_run_all.sh
186+
run: |
187+
cd repo_archive
188+
./ci/test_run_all.sh
181189
env:
182190
FILE_ENV: ${{ matrix.file-env }}
183191

0 commit comments

Comments
 (0)