From 6f906275b06f28c1d122d0da982b597240cb3452 Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev Date: Sun, 18 Oct 2020 11:30:15 +0200 Subject: [PATCH 1/4] Add clangd-index-server to release asset --- .github/workflows/autobuild.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 6685022..d20bf9e 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -153,7 +153,7 @@ jobs: "-DGRPC_INSTALL_PATH=grpc-installation" ${{ matrix.config.cmake }} - name: Ninja - run: ninja -C ${{ env.CLANGD_DIR }} clangd clangd-indexer + run: ninja -C ${{ env.CLANGD_DIR }} clangd clangd-indexer clangd-index-server - name: Archive clangd run: > 7z a clangd.zip @@ -165,6 +165,7 @@ jobs: 7z a indexing-tools.zip ${{ env.CLANGD_DIR }}/LICENSE.TXT ${{ env.CLANGD_DIR }}/bin/clangd-indexer${{ matrix.config.binary_extension }} + ${{ env.CLANGD_DIR }}/bin/clangd-index-server${{ matrix.config.binary_extension }} - name: Upload artifact uses: actions/upload-artifact@v1 with: From 8d1f3300c538f61b87ec73ea662cdf85d0d487b2 Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev <3352968+kirillbobyrev@users.noreply.github.com> Date: Sun, 18 Oct 2020 13:58:12 +0200 Subject: [PATCH 2/4] Enable gRPC support for macOS and Windows (#565) --- .github/workflows/autobuild.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index d20bf9e..f6cc5ab 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -41,7 +41,7 @@ jobs: config: - name: windows os: windows-latest - preinstall: choco install ninja + preinstall: choco install ninja nasm vcvars: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat cflags: /O2 /DNDEBUG # FIXME: remove ALLOW_OLD_TOOLCHAIN once VS 16.5 is available. @@ -51,6 +51,8 @@ jobs: "-DLLVM_ENABLE_ZLIB=OFF" "-DLLVM_USE_CRT_RELEASE=MT" "-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON" + grpc_cmake: > + "-DgRPC_MSVC_STATIC_RUNTIME=ON" binary_extension: ".exe" - name: mac os: macos-latest @@ -72,7 +74,6 @@ jobs: "-DLLVM_STATIC_LINK_CXX_STDLIB=ON" "-DLLVM_ENABLE_ZLIB=FORCE_ON" "-DCMAKE_PROJECT_INCLUDE=$GITHUB_WORKSPACE/.github/workflows/linux-static-deps.cmake" - "-DCLANGD_ENABLE_REMOTE=ON" # Using c-ares as a module prevents dynamic linking of unneeded # libraries. All other gRPC dependencies can be built from sources. grpc_cmake: > @@ -99,7 +100,6 @@ jobs: # FIXME: gRPC support is currently available only on Linux. Other platforms # will be added later. - name: Clone gRPC - if: matrix.config.name == 'linux' uses: actions/checkout@v2 with: repository: grpc/grpc @@ -107,7 +107,6 @@ jobs: ref: v1.32.0 submodules: recursive - name: Build gRPC - if: matrix.config.name == 'linux' run: > mkdir grpc-installation @@ -150,6 +149,7 @@ jobs: "-DLLVM_ENABLE_PLUGINS=OFF" "-DCMAKE_C_FLAGS_RELEASE=${{ matrix.config.cflags }}" "-DCMAKE_CXX_FLAGS_RELEASE=${{ matrix.config.cflags }}" + "-DCLANGD_ENABLE_REMOTE=ON" "-DGRPC_INSTALL_PATH=grpc-installation" ${{ matrix.config.cmake }} - name: Ninja From 02bad4f0eb37c0137b1766169407b7ac39262f0a Mon Sep 17 00:00:00 2001 From: Kirill Bobyrev <3352968+kirillbobyrev@users.noreply.github.com> Date: Fri, 23 Oct 2020 17:00:11 +0200 Subject: [PATCH 3/4] Bundle headers in indexing-tools release archive (#570) --- .github/workflows/autobuild.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index f6cc5ab..d5a4409 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -166,6 +166,7 @@ jobs: ${{ env.CLANGD_DIR }}/LICENSE.TXT ${{ env.CLANGD_DIR }}/bin/clangd-indexer${{ matrix.config.binary_extension }} ${{ env.CLANGD_DIR }}/bin/clangd-index-server${{ matrix.config.binary_extension }} + ${{ env.CLANGD_DIR }}/lib/clang - name: Upload artifact uses: actions/upload-artifact@v1 with: From a276cdf62f3c47e0364120f4d71081276c885f53 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Mon, 26 Oct 2020 09:59:09 +0100 Subject: [PATCH 4/4] Change escaping of double quotes to single quote Release names contains quotes around commit hashes due to the escaping. After this patch, they'll be gone. --- .github/workflows/periodic.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/periodic.yaml b/.github/workflows/periodic.yaml index a25898d..297cd2e 100644 --- a/.github/workflows/periodic.yaml +++ b/.github/workflows/periodic.yaml @@ -31,7 +31,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Compute release info run: | - echo "RELEASE_COMMIT_SHORT=$(printf \"%.12s\" ${{ steps.pick.outputs.sha }})" >> $GITHUB_ENV + echo "RELEASE_COMMIT_SHORT=$(printf '%.12s' ${{ steps.pick.outputs.sha }})" >> $GITHUB_ENV echo "RELEASE_DATE=$(date -u +%Y%m%d)" >> $GITHUB_ENV - name: Create release uses: actions/create-release@master