Compare commits

..

4 Commits

Author SHA1 Message Date
InfinityWei
439b0626d1
Fix MacOS CI builds (#2354) 2025-04-02 02:18:35 -04:00
Kevin
cb1cfd5a92
Fix Linux CI builds (#2319)
- Use container: ubuntu:20.04 instead of container: ubuntu:18.04.
- Add `exp` to `lib_compat.h` to solve the GLIBC 2.29 dependency issue.

Fixes https://github.com/clangd/clangd/issues/2244
2025-02-09 02:05:11 -05:00
Nathan Ridge
8ea4a27f46
Use upload-artifact@v4 and download-artifact@v4 (#2306)
Fixes https://github.com/clangd/clangd/issues/2305
2025-01-31 02:24:44 -05:00
Nathan Ridge
0a7499759d
Use macos-13 image for Mac builds (#2304) 2025-01-30 10:05:47 -05:00
2 changed files with 11 additions and 10 deletions

View File

@ -70,7 +70,7 @@ jobs:
run: > run: >
echo "RELEASE_DESCRIPTION=Unstable snapshot of clangd on ${{ env.RELEASE_DATE }}." >> commit.env echo "RELEASE_DESCRIPTION=Unstable snapshot of clangd on ${{ env.RELEASE_DATE }}." >> commit.env
- name: Upload result - name: Upload result
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: env name: env
path: commit.env path: commit.env
@ -87,7 +87,7 @@ jobs:
echo "RELEASE_NAME=${{ github.event.inputs.release_name }}" >> commit.env echo "RELEASE_NAME=${{ github.event.inputs.release_name }}" >> commit.env
echo "RELEASE_DESCRIPTION=${{ github.event.inputs.description }}" >> commit.env echo "RELEASE_DESCRIPTION=${{ github.event.inputs.description }}" >> commit.env
- name: Upload result - name: Upload result
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: env name: env
path: commit.env path: commit.env
@ -101,7 +101,7 @@ jobs:
if: always() && (needs.schedule_environment.result == 'success' || needs.workflow_dispatch_environment.result == 'success') if: always() && (needs.schedule_environment.result == 'success' || needs.workflow_dispatch_environment.result == 'success')
steps: steps:
- name: Fetch environment variables - name: Fetch environment variables
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: name:
env env
@ -130,7 +130,7 @@ jobs:
echo "TAG_NAME=${{ env.TAG_NAME }}" >> release.env echo "TAG_NAME=${{ env.TAG_NAME }}" >> release.env
echo "RELEASE_ID=${{ steps.create_release.outputs.id }}" >> release.env echo "RELEASE_ID=${{ steps.create_release.outputs.id }}" >> release.env
- name: Upload result - name: Upload result
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: release name: release
path: release.env path: release.env
@ -162,7 +162,7 @@ jobs:
"-DgRPC_MSVC_STATIC_RUNTIME=ON" "-DgRPC_MSVC_STATIC_RUNTIME=ON"
binary_extension: ".exe" binary_extension: ".exe"
- name: mac - name: mac
os: macos-12 os: macos-13
preinstall: brew install ninja zlib p7zip preinstall: brew install ninja zlib p7zip
cflags: -O3 -gline-tables-only -DNDEBUG cflags: -O3 -gline-tables-only -DNDEBUG
cmake: >- cmake: >-
@ -170,13 +170,13 @@ jobs:
"-DCMAKE_CXX_COMPILER=clang++" "-DCMAKE_CXX_COMPILER=clang++"
"-DLLVM_ENABLE_ZLIB=FORCE_ON" "-DLLVM_ENABLE_ZLIB=FORCE_ON"
"-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64" "-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64"
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9" "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
# BoringSSL doesn't support universal binaries when building with ASM. # BoringSSL doesn't support universal binaries when building with ASM.
grpc_cmake: >- grpc_cmake: >-
"-DOPENSSL_NO_ASM=ON" "-DOPENSSL_NO_ASM=ON"
- name: linux - name: linux
os: ubuntu-latest os: ubuntu-latest
container: ubuntu:18.04 container: ubuntu:20.04
preinstall: >- preinstall: >-
apt-get update && apt-get update &&
apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-9 apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-9
@ -245,14 +245,14 @@ jobs:
ninja -C grpc-build install ninja -C grpc-build install
- name: Fetch target commit - name: Fetch target commit
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: name:
env env
path: path:
env env
- name: Fetch release info - name: Fetch release info
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: name:
release release
@ -363,7 +363,7 @@ jobs:
if: always() && needs.build.result == 'success' if: always() && needs.build.result == 'success'
steps: steps:
- name: Fetch release info - name: Fetch release info
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: name:
release release

View File

@ -16,5 +16,6 @@ FORCE_SYMBOL_VERSION(expf, GLIBC_2.2.5);
FORCE_SYMBOL_VERSION(log, GLIBC_2.2.5); FORCE_SYMBOL_VERSION(log, GLIBC_2.2.5);
FORCE_SYMBOL_VERSION(log2, GLIBC_2.2.5); FORCE_SYMBOL_VERSION(log2, GLIBC_2.2.5);
FORCE_SYMBOL_VERSION(pow, GLIBC_2.2.5); FORCE_SYMBOL_VERSION(pow, GLIBC_2.2.5);
FORCE_SYMBOL_VERSION(exp, GLIBC_2.2.5);
#undef FORCE_SYMBOL_VERSION #undef FORCE_SYMBOL_VERSION