Skip to content

Commit 76bd0a9

Browse files
committed
.github: rely on new llvm-project checkout
This is now baked into the docker images to speed up premerge cycle times.
1 parent 47424df commit 76bd0a9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/premerge.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,21 @@ jobs:
3131
(github.event_name != 'pull_request' || github.event.action != 'closed')
3232
runs-on: llvm-premerge-linux-runners
3333
steps:
34+
- name: Seed LLVM repo
35+
run: |
36+
# Github creates a directory at GITHUB_WORKSPACE by defualt; replace it
37+
# with a symlink to our pre-checked-out LLVM repo (this is necessary
38+
# since actions/checkout _really wants_ a path inside of
39+
# `${GITHUB_WORKSPACE}`
40+
rmdir "${GITHUB_WORKSPACE}"
41+
ln -s /home/gha/llvm-project "${GITHUB_WORKSPACE}"
3442
- name: Checkout LLVM
3543
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3644
with:
3745
fetch-depth: 2
46+
# The `ln`'ed repo is frozen with the docker container; no need to
47+
# clean.
48+
clean: false
3849
- name: Setup ccache
3950
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4051
with:

0 commit comments

Comments
 (0)