From 0b3b2751fb899f0f5102a943d0076623f5585af0 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Tue, 23 Nov 2021 01:51:10 -0600 Subject: [PATCH] docs: improve the github action example [skip ci] --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fedb453..54822b1d 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,24 @@ jobs: - llvm - gcc # you can specify the version after `-` like `llvm-13.0.0`. + include: + - os: "windows-latest" + compiler: "msvc" steps: + - name: Cache + uses: actions/cache@v2 + with: + path: | + ~/vcpkg + ./build/vcpkg_installed + ${{ env.HOME }}/.cache/vcpkg/archives + ${{ env.XDG_CACHE_HOME }}/vcpkg/archives + ${{ env.LOCALAPPDATA }}\vcpkg\archives + ${{ env.APPDATA }}\vcpkg\archives + key: ${{ runner.os }}-${{ matrix.compiler }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}} + restore-keys: | + ${{ runner.os }}-${{ env.BUILD_TYPE }} + - name: Setup Cpp uses: aminya/setup-cpp@v1 with: @@ -124,8 +141,7 @@ jobs: cmake: true ninja: true vcpkg: true - cppcheck: true - ccache: true # instead of `true`, which chooses the default version, you can pass a specific version. + cppcheck: true # instead of `true`, which chooses the default version, you can pass a specific version. # add any tool that you need here... ```