Skip to content

Commit 9e38e3a

Browse files
authored
[CI] Used sparse checkout for checking out e2e tests (#17790)
I think this will save around 30s for every e2e job. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent 24b7bc3 commit 9e38e3a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,14 @@ jobs:
117117
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
118118
- name: Register cleanup after job is finished
119119
uses: ./devops/actions/cleanup
120-
- uses: ./devops/actions/cached_checkout
120+
- uses: actions/checkout@v4
121121
if: inputs.tests_selector == 'e2e'
122122
with:
123123
path: llvm
124124
ref: ${{ inputs.repo_ref || github.sha }}
125-
cache_path: "D:\\\\github\\\\_work\\\\repo_cache\\\\"
125+
sparse-checkout: |
126+
llvm/utils/lit
127+
sycl/test-e2e
126128
- name: Download compiler toolchain
127129
uses: actions/download-artifact@v4
128130
with:

devops/actions/run-tests/e2e/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ runs:
2323
using: "composite"
2424
steps:
2525
- name: Checkout E2E tests
26-
uses: ./devops/actions/cached_checkout
26+
uses: actions/checkout@v4
2727
with:
2828
path: llvm
2929
ref: ${{ inputs.ref || github.sha }}
30-
cache_path: "/__w/repo_cache/"
30+
sparse-checkout: |
31+
llvm/utils/lit
32+
sycl/test-e2e
3133
3234
- name: Download E2E Binaries
3335
if: inputs.testing_mode == 'run-only'

0 commit comments

Comments
 (0)