Skip to content

Commit 406490f

Browse files
authored
Windows GitHub cache [API-1890] (#1172)
* Update nightly-windows.yml * Update nightly-windows.yml * Update nightly-windows.yml * Update nightly-windows.yml * env cache name removed
1 parent 27cc1e6 commit 406490f

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

.github/workflows/nightly-windows.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,17 @@ jobs:
105105
"https://curl.se/ca/cacert.pem" `
106106
-OutFile "C:\cacert.pem"
107107
108-
- name: Install Boost
108+
- name: Cache Boost Version
109+
id: cache-boost
110+
uses: actions/cache@v3
111+
with:
112+
path: C:\Boost
113+
key: ${{ matrix.vc_boost.name }}-${{ matrix.arch.address_model }}-${{ matrix.build_type }}
114+
restore-keys: |
115+
${{ matrix.vc_boost.name }}-${{ matrix.arch.address_model }}-${{ matrix.build_type }}
116+
117+
- if: ${{ steps.cache-boost.outputs.cache-hit != 'true' }}
118+
name: Install Boost
109119
run: |
110120
Invoke-WebRequest `
111121
"${{ matrix.vc_boost.boost_url }}" `
@@ -119,7 +129,17 @@ jobs:
119129
cd ..
120130
Remove-Item ${{ matrix.vc_boost.boost_folder_name }} -Recurse -Force
121131
122-
- name: Install Thrift
132+
- name: Cache Thrift Version
133+
id: cache-thrift
134+
uses: actions/cache@v3
135+
with:
136+
path: C:\Thrift
137+
key: ${{ matrix.vc_boost.image }}-${{ matrix.arch.address_model }}-thrift-0.13-${{ matrix.build_type }}
138+
restore-keys: |
139+
${{ matrix.vc_boost.image }}-${{ matrix.arch.address_model }}-thrift-0.13-${{ matrix.build_type }}
140+
141+
- if: ${{ steps.cache-thrift.outputs.cache-hit != 'true' }}
142+
name: Install Thrift
123143
run: |
124144
Invoke-WebRequest `
125145
"https://archive.apache.org/dist/thrift/0.13.0/thrift-0.13.0.tar.gz" `

0 commit comments

Comments
 (0)