Expand path to grpc-installation directory

Weekly snapshot builds are failing because CMake couldn't find gRPC and
Protobuf libraries. Expanding the path from relative to the full one
solves the problem.

Fixes: https://github.com/clangd/clangd/issues/641
This commit is contained in:
Kirill Bobyrev 2021-01-13 12:11:12 +01:00
parent ae38d57cb9
commit ebde6ecac4
No known key found for this signature in database
GPG Key ID: 2307C055C8384FA0

View File

@ -109,13 +109,13 @@ jobs:
submodules: recursive
- name: Build gRPC
run: >
mkdir grpc-installation
mkdir $HOME/grpc-installation
mkdir grpc-build
cmake -G Ninja -S grpc -B grpc-build
"-DgRPC_INSTALL=ON"
"-DCMAKE_INSTALL_PREFIX=grpc-installation"
"-DCMAKE_INSTALL_PREFIX=$HOME/grpc-installation"
"-DCMAKE_BUILD_TYPE=Release"
${{ matrix.config.grpc_cmake }}
@ -151,7 +151,7 @@ jobs:
"-DCMAKE_C_FLAGS_RELEASE=${{ matrix.config.cflags }}"
"-DCMAKE_CXX_FLAGS_RELEASE=${{ matrix.config.cflags }}"
"-DCLANGD_ENABLE_REMOTE=ON"
"-DGRPC_INSTALL_PATH=grpc-installation"
"-DGRPC_INSTALL_PATH=$HOME/grpc-installation"
${{ matrix.config.cmake }}
- name: Ninja
run: ninja -C ${{ env.CLANGD_DIR }} clangd clangd-indexer clangd-index-server