GHA: Disable install and use of grpc on GitHub Actions

* GHA: Disable install and use of grpc on GitHub Actions

The current grpc package installed as part of vcpkg is huge, and is rejected from the cache on GitHub Action. This causes a very long build time for Windows builds.

Temporarily disable build of grpc for Windows
This commit is contained in:
Magne Sjaastad 2025-01-21 13:54:58 +01:00 committed by GitHub
parent 2bcdc62931
commit ed66ee9355
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 2 deletions

View File

@ -30,9 +30,9 @@ jobs:
os: windows-2022,
cc: "cl",
cxx: "cl",
build-python-module: true,
build-python-module: false,
execute-unit-tests: true,
execute-pytests: true,
execute-pytests: false,
unity-build: true,
publish-to-pypi: false,
vcpkg-bootstrap: bootstrap-vcpkg.bat,
@ -187,6 +187,11 @@ jobs:
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
- name: Replace and use vcpkg.json without grpc
if: contains( matrix.config.os, 'windows')
run: |
cp vcpkg_no_grpc.json vcpkg.json
- name: vcpkg bootstrap
run: |
ThirdParty/vcpkg/${{ matrix.config.vcpkg-bootstrap }}

17
vcpkg_no_grpc.json Normal file
View File

@ -0,0 +1,17 @@
{
"dependencies": [
"arrow",
"boost-filesystem",
"boost-spirit",
"eigen3",
"type-lite",
"fast-float",
"spdlog"
],
"overrides": [
{
"name": "fmt",
"version": "10.1.1"
}
]
}