Skip to content

Commit

Permalink
GHA: Disable install and use of grpc on GitHub Actions
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
magnesj authored Jan 21, 2025
1 parent 2bcdc62 commit ed66ee9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ResInsightWithCache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 }}
Expand Down
17 changes: 17 additions & 0 deletions vcpkg_no_grpc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"dependencies": [
"arrow",
"boost-filesystem",
"boost-spirit",
"eigen3",
"type-lite",
"fast-float",
"spdlog"
],
"overrides": [
{
"name": "fmt",
"version": "10.1.1"
}
]
}

0 comments on commit ed66ee9

Please sign in to comment.