Skip to content

Commit 0b3b275

Browse files
committed
docs: improve the github action example [skip ci]
1 parent 2c56d7e commit 0b3b275

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,32 @@ jobs:
116116
- llvm
117117
- gcc
118118
# you can specify the version after `-` like `llvm-13.0.0`.
119+
include:
120+
- os: "windows-latest"
121+
compiler: "msvc"
119122
steps:
123+
- name: Cache
124+
uses: actions/cache@v2
125+
with:
126+
path: |
127+
~/vcpkg
128+
./build/vcpkg_installed
129+
${{ env.HOME }}/.cache/vcpkg/archives
130+
${{ env.XDG_CACHE_HOME }}/vcpkg/archives
131+
${{ env.LOCALAPPDATA }}\vcpkg\archives
132+
${{ env.APPDATA }}\vcpkg\archives
133+
key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}
134+
restore-keys: |
135+
${{ runner.os }}-${{ env.BUILD_TYPE }}
136+
120137
- name: Setup Cpp
121138
uses: aminya/setup-cpp@v1
122139
with:
123140
compiler: ${{ matrix.compiler }}
124141
cmake: true
125142
ninja: true
126143
vcpkg: true
127-
cppcheck: true
128-
ccache: true # instead of `true`, which chooses the default version, you can pass a specific version.
144+
cppcheck: true # instead of `true`, which chooses the default version, you can pass a specific version.
129145
# add any tool that you need here...
130146
```
131147

0 commit comments

Comments
 (0)