Skip to content

Commit 3a839f2

Browse files
committed
DO NOT COMMIT: tweak premerge to use custom image
For help in testing the prior commit
1 parent 03e9744 commit 3a839f2

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/premerge.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,24 @@ concurrency:
2626
jobs:
2727
premerge-checks-linux:
2828
name: Linux Premerge Checks (Test Only - Please Ignore Results)
29-
defaults:
30-
run:
31-
# The premerge Linux docker instance keeps a pristine clone of LLVM in
32-
# /home/gha/llvm-project; that should be used as our main workdir.
33-
working-directory: /home/gha/llvm-project
3429
if: >-
3530
github.repository_owner == 'llvm' &&
3631
(github.event_name != 'pull_request' || github.event.action != 'closed')
37-
runs-on: llvm-premerge-linux-runners
3832
steps:
33+
- name: Seed LLVM repo
34+
run: |
35+
# Github creates a directory at GITHUB_WORKSPACE by defualt; replace it
36+
# with a symlink to our pre-checked-out LLVM repo (this is necessary
37+
# since actions/checkout _really wants_ a path inside of
38+
# `${GITHUB_WORKSPACE}`
39+
rmdir "${GITHUB_WORKSPACE}"
40+
ln -s /home/gha/llvm-project "${GITHUB_WORKSPACE}"
3941
- name: Checkout LLVM
4042
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4143
with:
42-
path: /home/gha/llvm-project
44+
fetch-depth: 2
45+
# This repo is frozen with the docker container; no need to clean.
46+
clean: false
4347
- name: Setup ccache
4448
uses: hendrikmuhs/ccache-action@a1209f81afb8c005c13b4296c32e363431bffea5 # v1.2.17
4549
with:

0 commit comments

Comments
 (0)