From ed66ee935520d56ec818384b57a8be53116bd6ae Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 21 Jan 2025 13:54:58 +0100 Subject: [PATCH] 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 --- .github/workflows/ResInsightWithCache.yml | 9 +++++++-- vcpkg_no_grpc.json | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 vcpkg_no_grpc.json diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index 0373c9e927..c1cfcaa9e7 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -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 }} diff --git a/vcpkg_no_grpc.json b/vcpkg_no_grpc.json new file mode 100644 index 0000000000..85ef718a6c --- /dev/null +++ b/vcpkg_no_grpc.json @@ -0,0 +1,17 @@ +{ + "dependencies": [ + "arrow", + "boost-filesystem", + "boost-spirit", + "eigen3", + "type-lite", + "fast-float", + "spdlog" + ], + "overrides": [ + { + "name": "fmt", + "version": "10.1.1" + } + ] +}