|
11 | 11 | cmake_preset: windows-x86-debug
|
12 | 12 | build_conf: Debug
|
13 | 13 | devenv_arch: amd64_x86
|
14 |
| - |
15 |
| - env: |
16 |
| - # Indicates the location of the vcpkg as a Git submodule of the project repository. |
17 |
| - VCPKG_ROOT: ${{ github.workspace }}/external/vcpkg |
18 |
| - # Tells vcpkg where binary packages are stored. |
19 |
| - VCPKG_DEFAULT_BINARY_CACHE: ${{ github.workspace }}/external/vcpkg/bincache |
20 |
| - # Let's use GitHub Action cache as storage for the vcpkg Binary Caching feature. |
21 |
| - VCPKG_BINARY_SOURCES: 'clear;x-gha,readwrite' |
22 |
| - |
23 | 14 | steps:
|
24 |
| - # Set env vars needed for vcpkg to leverage the GitHub Action cache as a storage |
25 |
| - # for Binary Caching. |
26 |
| - - name: Set env vars needed for vcpkg to leverage the GitHub Action cache |
27 |
| - uses: actions/github-script@v6 |
28 |
| - with: |
29 |
| - script: | |
30 |
| - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); |
31 |
| - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); |
32 |
| -
|
33 | 15 | - name: Checkout repository
|
34 | 16 | uses: actions/checkout@v4
|
35 | 17 | with:
|
|
49 | 31 | - name: Install ninja-build tool
|
50 | 32 | uses: seanmiddleditch/gha-setup-ninja@v4
|
51 | 33 |
|
52 |
| - - name: "Create directory '${{ env.VCPKG_DEFAULT_BINARY_CACHE }}'" |
53 |
| - shell: bash |
54 |
| - run: mkdir -p $VCPKG_DEFAULT_BINARY_CACHE |
55 |
| - |
56 |
| - # Restore vcpkg from the GitHub Action cache service. Note that packages are restored by vcpkg's binary caching |
57 |
| - # when it is being run afterwards by CMake. |
58 |
| - - name: Restore vcpkg |
59 |
| - uses: actions/cache@v3 |
60 |
| - with: |
61 |
| - # The first path is the location of vcpkg: it contains the vcpkg executable and data files, as long as the |
62 |
| - # built package archives (aka binary cache) which are located by VCPKG_DEFAULT_BINARY_CACHE env var. |
63 |
| - # The other paths starting with '!' are exclusions: they contain termporary files generated during the build of the installed packages. |
64 |
| - path: | |
65 |
| - ${{ env.VCPKG_ROOT }} |
66 |
| - !${{ env.VCPKG_ROOT }}/buildtrees |
67 |
| - !${{ env.VCPKG_ROOT }}/packages |
68 |
| - !${{ env.VCPKG_ROOT }}/downloads |
69 |
| - !${{ env.VCPKG_ROOT }}/installed |
70 |
| - # The key is composed in a way that it gets properly invalidated whenever a different version of vcpkg is being used. |
71 |
| - key: | |
72 |
| - ${{ hashFiles( '.git/modules/external/vcpkg/HEAD' )}} |
73 |
| -
|
74 | 34 | - name: Configure CMake
|
75 | 35 | working-directory: ${{ github.workspace }}/build
|
76 | 36 | # Note the current convention is to use the -S and -B options here to specify source
|
|
0 commit comments