From d5998e7fce190cf2a828b02eb5165f86075ba815 Mon Sep 17 00:00:00 2001 From: ceron257 Date: Wed, 18 Oct 2023 22:24:32 +0200 Subject: [PATCH 1/3] Fixes #1793 - Fix runtime linkage --- .github/workflows/autobuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 682c490..6867547 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -151,7 +151,7 @@ jobs: "-DCMAKE_C_COMPILER=cl" "-DCMAKE_CXX_COMPILER=cl" "-DLLVM_ENABLE_ZLIB=OFF" - "-DLLVM_USE_CRT_RELEASE=MT" + "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded" grpc_cmake: >- "-DgRPC_MSVC_STATIC_RUNTIME=ON" binary_extension: ".exe" From ff6fd4914810e0e8693cb45381e45c1cd080c3c5 Mon Sep 17 00:00:00 2001 From: InfinityWei <31464143+InfinityWei@users.noreply.github.com> Date: Mon, 8 Jul 2024 15:42:32 +0800 Subject: [PATCH 2/3] Fix weekly snapshot releases (#2084) The release was broken because the macos-latest image was upgraded from macos-12 to macos-14, resulting in AppleClang being updated from version 14 to 15. To resolve the problem, modify macos-latest back to macos-12. Additionally, the Linux build now needs Python 3.8, and the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION environment variable enabled to keep using node 16. Fixes #2028 --- .github/workflows/autobuild.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index 6867547..ea54f5f 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -5,6 +5,8 @@ # Because the build takes more than an hour, our GITHUB_TOKEN credentials may # expire. A token `secrets.RELEASE_TOKEN` must exist with public_repo scope. name: Build release binaries +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true on: # Run weekly on sunday at 21:37 UTC (arbitrary) schedule: @@ -156,7 +158,7 @@ jobs: "-DgRPC_MSVC_STATIC_RUNTIME=ON" binary_extension: ".exe" - name: mac - os: macos-latest + os: macos-12 preinstall: brew install ninja zlib p7zip cflags: -O3 -gline-tables-only -DNDEBUG cmake: >- @@ -179,7 +181,7 @@ jobs: wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && apt-get update && - apt-get install -y git cmake + apt-get install -y git cmake python3.8 python3.8-dev cflags: -O3 -gline-tables-only -DNDEBUG -include $GITHUB_WORKSPACE/.github/workflows/lib_compat.h cmake: >- "-DCMAKE_C_COMPILER=clang-9" From cb870db274da5da45e3816d88ca762de3c38bef8 Mon Sep 17 00:00:00 2001 From: InfinityWei <31464143+InfinityWei@users.noreply.github.com> Date: Fri, 13 Sep 2024 12:53:36 +0800 Subject: [PATCH 3/3] Bump upload-artifact and download-artifact version to v3 (#2141) v1 and v2 have been deprecated and workflows that try to use them now fail --- .github/workflows/autobuild.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/autobuild.yaml b/.github/workflows/autobuild.yaml index ea54f5f..701be7d 100644 --- a/.github/workflows/autobuild.yaml +++ b/.github/workflows/autobuild.yaml @@ -70,7 +70,7 @@ jobs: run: > echo "RELEASE_DESCRIPTION=Unstable snapshot of clangd on ${{ env.RELEASE_DATE }}." >> commit.env - name: Upload result - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: env path: commit.env @@ -87,7 +87,7 @@ jobs: echo "RELEASE_NAME=${{ github.event.inputs.release_name }}" >> commit.env echo "RELEASE_DESCRIPTION=${{ github.event.inputs.description }}" >> commit.env - name: Upload result - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: env path: commit.env @@ -101,10 +101,12 @@ jobs: if: always() && (needs.schedule_environment.result == 'success' || needs.workflow_dispatch_environment.result == 'success') steps: - name: Fetch environment variables - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: env + path: + env - name: Set environment variables run: | cat env/commit.env >> $GITHUB_ENV @@ -128,7 +130,7 @@ jobs: echo "TAG_NAME=${{ env.TAG_NAME }}" >> release.env echo "RELEASE_ID=${{ steps.create_release.outputs.id }}" >> release.env - name: Upload result - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: release path: release.env @@ -241,15 +243,19 @@ jobs: ninja -C grpc-build install - name: Fetch target commit - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: env + path: + env - name: Fetch release info - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: release + path: + release - name: Put release info into env run: | cat env/commit.env >> $GITHUB_ENV @@ -339,10 +345,12 @@ jobs: if: always() && needs.build.result == 'success' steps: - name: Fetch release info - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: release + path: + release - name: Update the env variables run: > cat release/release.env >> $GITHUB_ENV