File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -73,20 +73,19 @@ jobs:
73
73
name : Build + LIT
74
74
runs-on : [Windows, build]
75
75
environment : WindowsCILock
76
- # TODO use cached checkout
77
76
outputs :
78
77
build_conclusion : ${{ steps.build.conclusion }}
79
78
steps :
80
79
- uses : actions/checkout@v4
81
80
with :
82
- path : src
83
- ref : ${{ inputs.build_ref || github.sha }}
84
- fetch-depth : 1
81
+ sparse-checkout : |
82
+ devops/actions
83
+ ref : ${{ inputs.ref || github.sha }}
85
84
- uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
86
85
with :
87
86
arch : amd64
88
87
- name : Setup oneAPI env
89
- uses : ./src/ devops/actions/setup_windows_oneapi_env
88
+ uses : ./devops/actions/setup_windows_oneapi_env
90
89
if : ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
91
90
- name : Set env
92
91
run : |
96
95
echo "CCACHE_DIR=D:\github\_work\cache\${{ inputs.build_cache_suffix }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
97
96
echo "CCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
98
97
- name : Register cleanup after job is finished
99
- uses : ./src/devops/actions/cleanup
98
+ uses : ./devops/actions/cleanup
99
+ - uses : ./devops/actions/cached_checkout
100
+ with :
101
+ path : src
102
+ ref : ${{ inputs.build_ref || github.sha }}
103
+ cache_path : " D:\\\\ github\\\\ _work\\\\ repo_cache\\\\ "
100
104
- name : Configure
101
105
shell : cmd
102
106
env :
Original file line number Diff line number Diff line change @@ -47,25 +47,29 @@ jobs:
47
47
environment : WindowsCILock
48
48
env : ${{ fromJSON(inputs.env) }}
49
49
steps :
50
- # TODO: use cached_checkout
51
50
- uses : actions/checkout@v4
52
51
with :
53
- persist-credentials : false
52
+ sparse-checkout : |
53
+ devops/actions
54
54
ref : ${{ inputs.ref || github.sha }}
55
- path : llvm
56
55
- uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
57
56
with :
58
57
arch : amd64
59
58
- name : Setup oneAPI env
60
- uses : ./llvm/ devops/actions/setup_windows_oneapi_env
59
+ uses : ./devops/actions/setup_windows_oneapi_env
61
60
if : ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
62
61
- name : Set env
63
62
run : |
64
63
git config --system core.longpaths true
65
64
git config --global core.autocrlf false
66
65
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
67
66
- name : Register cleanup after job is finished
68
- uses : ./llvm/devops/actions/cleanup
67
+ uses : ./devops/actions/cleanup
68
+ - uses : ./devops/actions/cached_checkout
69
+ with :
70
+ path : llvm
71
+ ref : ${{ inputs.build_ref || github.sha }}
72
+ cache_path : " D:\\\\ github\\\\ _work\\\\ repo_cache\\\\ "
69
73
- name : Download compiler toolchain
70
74
uses : actions/download-artifact@v4
71
75
with :
You can’t perform that action at this time.
0 commit comments