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:
7373 name : Build + LIT
7474 runs-on : [Windows, build]
7575 environment : WindowsCILock
76- # TODO use cached checkout
7776 outputs :
7877 build_conclusion : ${{ steps.build.conclusion }}
7978 steps :
8079 - uses : actions/checkout@v4
8180 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 }}
8584 - uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
8685 with :
8786 arch : amd64
8887 - name : Setup oneAPI env
89- uses : ./src/ devops/actions/setup_windows_oneapi_env
88+ uses : ./devops/actions/setup_windows_oneapi_env
9089 if : ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
9190 - name : Set env
9291 run : |
9695 echo "CCACHE_DIR=D:\github\_work\cache\${{ inputs.build_cache_suffix }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
9796 echo "CCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
9897 - 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\\\\ "
100104 - name : Configure
101105 shell : cmd
102106 env :
Original file line number Diff line number Diff line change @@ -47,25 +47,29 @@ jobs:
4747 environment : WindowsCILock
4848 env : ${{ fromJSON(inputs.env) }}
4949 steps :
50- # TODO: use cached_checkout
5150 - uses : actions/checkout@v4
5251 with :
53- persist-credentials : false
52+ sparse-checkout : |
53+ devops/actions
5454 ref : ${{ inputs.ref || github.sha }}
55- path : llvm
5655 - uses : ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
5756 with :
5857 arch : amd64
5958 - name : Setup oneAPI env
60- uses : ./llvm/ devops/actions/setup_windows_oneapi_env
59+ uses : ./devops/actions/setup_windows_oneapi_env
6160 if : ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
6261 - name : Set env
6362 run : |
6463 git config --system core.longpaths true
6564 git config --global core.autocrlf false
6665 echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
6766 - 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\\\\ "
6973 - name : Download compiler toolchain
7074 uses : actions/download-artifact@v4
7175 with :
You can’t perform that action at this time.
0 commit comments