Skip to content

Commit fe2a24f

Browse files
committed
fixup! tools: use sparse checkout in build-tarball.yml
1 parent 5346101 commit fe2a24f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-tarball.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ jobs:
8080
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8181
with:
8282
persist-credentials: false
83-
sparse-checkout: |
84-
.github/actions
85-
tools/eslint
86-
tools/eslint-rules
83+
sparse-checkout: .github/actions/install-clang
84+
sparse-checkout-cone-mode: false
8785
- name: Install Clang ${{ env.CLANG_VERSION }}
8886
uses: ./.github/actions/install-clang
8987
with:
@@ -110,10 +108,16 @@ jobs:
110108
- name: Build
111109
run: |
112110
make -C "$TAR_DIR" build-ci -j4 V=1
113-
- name: Copy directories needed for testing
111+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
112+
with:
113+
persist-credentials: false
114+
sparse-checkout: |
115+
tools/eslint
116+
tools/eslint-rules
117+
- name: Move directories needed for testing
114118
run: |
115-
cp -r tools/eslint $TAR_DIR/tools
116-
cp -r tools/eslint-rules $TAR_DIR/tools
119+
mv tools/eslint $TAR_DIR/tools
120+
mv tools/eslint-rules $TAR_DIR/tools
117121
- name: Test
118122
run: |
119123
make -C "$TAR_DIR" run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"

0 commit comments

Comments
 (0)