Skip to content

Commit a1a0988

Browse files
committed
CI: disabled caching vcpkg binary assets
1 parent b9000d1 commit a1a0988

File tree

1 file changed

+0
-40
lines changed

1 file changed

+0
-40
lines changed

.github/workflows/nightly-builds.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,7 @@ jobs:
1111
cmake_preset: windows-x86-debug
1212
build_conf: Debug
1313
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-
2314
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-
3315
- name: Checkout repository
3416
uses: actions/checkout@v4
3517
with:
@@ -49,28 +31,6 @@ jobs:
4931
- name: Install ninja-build tool
5032
uses: seanmiddleditch/gha-setup-ninja@v4
5133

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-
7434
- name: Configure CMake
7535
working-directory: ${{ github.workspace }}/build
7636
# Note the current convention is to use the -S and -B options here to specify source

0 commit comments

Comments
 (0)