mirror of
https://github.com/clangd/clangd.git
synced 2025-09-05 13:31:42 +00:00
Merge 02bdc51da5
into 30a8f963f7
This commit is contained in:
commit
212a711b95
76
.github/workflows/autobuild.yaml
vendored
76
.github/workflows/autobuild.yaml
vendored
@ -146,8 +146,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- name: windows
|
- name: windows-x64
|
||||||
os: windows-2022
|
runner: windows-2022
|
||||||
preinstall: choco install ninja nasm
|
preinstall: choco install ninja nasm
|
||||||
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
cflags: /O2 /DNDEBUG
|
cflags: /O2 /DNDEBUG
|
||||||
@ -161,21 +161,44 @@ jobs:
|
|||||||
grpc_cmake: >-
|
grpc_cmake: >-
|
||||||
"-DgRPC_MSVC_STATIC_RUNTIME=ON"
|
"-DgRPC_MSVC_STATIC_RUNTIME=ON"
|
||||||
binary_extension: ".exe"
|
binary_extension: ".exe"
|
||||||
- name: mac
|
# Can be uncommented once gRPC is upgraded past v1.54.
|
||||||
os: macos-13
|
# - name: windows-arm64
|
||||||
|
# runner: windows-11-arm
|
||||||
|
# preinstall: choco install ninja nasm
|
||||||
|
# vcvars: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
|
# cflags: /O2 /DNDEBUG
|
||||||
|
# cmake: >-
|
||||||
|
# "-DCMAKE_C_COMPILER=cl"
|
||||||
|
# "-DCMAKE_CXX_COMPILER=cl"
|
||||||
|
# "-DLLVM_ENABLE_ZLIB=OFF"
|
||||||
|
# "-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded"
|
||||||
|
# "-DLLVM_ENABLE_PDB=ON"
|
||||||
|
# "-DLLVM_PARALLEL_LINK_JOBS=1"
|
||||||
|
# grpc_cmake: >-
|
||||||
|
# "-DgRPC_MSVC_STATIC_RUNTIME=ON"
|
||||||
|
# binary_extension: ".exe"
|
||||||
|
- name: mac-x64
|
||||||
|
runner: 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: >-
|
||||||
"-DCMAKE_C_COMPILER=clang"
|
"-DCMAKE_C_COMPILER=clang"
|
||||||
"-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"
|
||||||
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
|
||||||
# BoringSSL doesn't support universal binaries when building with ASM.
|
- name: mac-arm64
|
||||||
grpc_cmake: >-
|
runner: macos-latest
|
||||||
"-DOPENSSL_NO_ASM=ON"
|
preinstall: brew install ninja zlib p7zip
|
||||||
- name: linux
|
cflags: -O3 -gline-tables-only -DNDEBUG
|
||||||
os: ubuntu-latest
|
cmake: >-
|
||||||
|
"-DCMAKE_C_COMPILER=clang"
|
||||||
|
"-DCMAKE_CXX_COMPILER=clang++"
|
||||||
|
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
||||||
|
"-DCMAKE_OSX_ARCHITECTURES=arm64"
|
||||||
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0"
|
||||||
|
- name: linux-x64
|
||||||
|
runner: ubuntu-latest
|
||||||
container: ubuntu:20.04
|
container: ubuntu:20.04
|
||||||
preinstall: >-
|
preinstall: >-
|
||||||
apt-get update &&
|
apt-get update &&
|
||||||
@ -198,7 +221,29 @@ jobs:
|
|||||||
# libraries. All other gRPC dependencies can be built from sources.
|
# libraries. All other gRPC dependencies can be built from sources.
|
||||||
grpc_cmake: >-
|
grpc_cmake: >-
|
||||||
"-DgRPC_CARES_PROVIDER=package"
|
"-DgRPC_CARES_PROVIDER=package"
|
||||||
runs-on: ${{ matrix.config.os }}
|
- name: linux-arm64
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
|
container: ubuntu:24.04
|
||||||
|
preinstall: >-
|
||||||
|
apt-get update &&
|
||||||
|
apt-get install -y ninja-build libz-dev libc-ares-dev wget clang-10
|
||||||
|
software-properties-common p7zip-full curl &&
|
||||||
|
add-apt-repository ppa:git-core/ppa &&
|
||||||
|
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 python3.8 python3.8-dev
|
||||||
|
cflags: -O3 -gline-tables-only -DNDEBUG -include $GITHUB_WORKSPACE/.github/workflows/lib_compat.h
|
||||||
|
cmake: >-
|
||||||
|
"-DCMAKE_C_COMPILER=clang-10"
|
||||||
|
"-DCMAKE_CXX_COMPILER=clang++-10"
|
||||||
|
"-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-static-libgcc -Wl,--compress-debug-sections=zlib"
|
||||||
|
"-DLLVM_STATIC_LINK_CXX_STDLIB=ON"
|
||||||
|
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
||||||
|
"-DCMAKE_PROJECT_INCLUDE=$GITHUB_WORKSPACE/.github/workflows/linux-static-deps.cmake"
|
||||||
|
grpc_cmake: >-
|
||||||
|
"-DgRPC_CARES_PROVIDER=package"
|
||||||
|
runs-on: ${{ matrix.config.runner }}
|
||||||
container: ${{ matrix.config.container }}
|
container: ${{ matrix.config.container }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone scripts
|
- name: Clone scripts
|
||||||
@ -210,7 +255,7 @@ jobs:
|
|||||||
# Run vcvars64.bat and re-export the current environment to the workflow.
|
# Run vcvars64.bat and re-export the current environment to the workflow.
|
||||||
# (It'd be nice to only export the variables that *changed*, oh well).
|
# (It'd be nice to only export the variables that *changed*, oh well).
|
||||||
- name: Visual Studio environment
|
- name: Visual Studio environment
|
||||||
if: matrix.config.name == 'windows'
|
if: startsWith(matrix.config.name, 'windows')
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
cmd /c "`"${{ matrix.config.vcvars }}`">NUL && set" | Foreach-Object {
|
cmd /c "`"${{ matrix.config.vcvars }}`">NUL && set" | Foreach-Object {
|
||||||
@ -237,6 +282,7 @@ jobs:
|
|||||||
|
|
||||||
cmake -G Ninja -S grpc -B grpc-build
|
cmake -G Ninja -S grpc -B grpc-build
|
||||||
"-DgRPC_INSTALL=ON"
|
"-DgRPC_INSTALL=ON"
|
||||||
|
"-DgRPC_BUILD_CSHARP_EXT=OFF"
|
||||||
"-DCMAKE_INSTALL_PREFIX=$HOME/grpc-installation"
|
"-DCMAKE_INSTALL_PREFIX=$HOME/grpc-installation"
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
"-DCMAKE_C_FLAGS_RELEASE=${{ matrix.config.cflags }}"
|
"-DCMAKE_C_FLAGS_RELEASE=${{ matrix.config.cflags }}"
|
||||||
@ -312,7 +358,7 @@ jobs:
|
|||||||
${{ env.CLANGD_DIR }}/bin/clangd${{ matrix.config.binary_extension }}
|
${{ env.CLANGD_DIR }}/bin/clangd${{ matrix.config.binary_extension }}
|
||||||
${{ env.CLANGD_DIR }}/lib/clang
|
${{ env.CLANGD_DIR }}/lib/clang
|
||||||
- name: Archive clangd PDB symbols
|
- name: Archive clangd PDB symbols
|
||||||
if: matrix.config.name == 'windows'
|
if: startsWith(matrix.config.name, 'windows')
|
||||||
run: >
|
run: >
|
||||||
7z a clangd-pdb.7z -t7z -m0=LZMA2
|
7z a clangd-pdb.7z -t7z -m0=LZMA2
|
||||||
${{ env.CLANGD_DIR }}/LICENSE.TXT
|
${{ env.CLANGD_DIR }}/LICENSE.TXT
|
||||||
@ -335,7 +381,7 @@ jobs:
|
|||||||
asset_path: clangd.zip
|
asset_path: clangd.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
- name: Upload clangd PDB asset
|
- name: Upload clangd PDB asset
|
||||||
if: matrix.config.name == 'windows'
|
if: startsWith(matrix.config.name, 'windows')
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
|
||||||
@ -354,7 +400,7 @@ jobs:
|
|||||||
asset_path: indexing-tools.zip
|
asset_path: indexing-tools.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
- name: Check binary compatibility
|
- name: Check binary compatibility
|
||||||
if: matrix.config.name == 'linux'
|
if: startsWith(matrix.config.name, 'linux')
|
||||||
run: .github/workflows/lib_compat_test.py --lib=GLIBC_2.18 "$CLANGD_DIR/bin/clangd"
|
run: .github/workflows/lib_compat_test.py --lib=GLIBC_2.18 "$CLANGD_DIR/bin/clangd"
|
||||||
# Create the release, and upload the artifacts to it.
|
# Create the release, and upload the artifacts to it.
|
||||||
finalize:
|
finalize:
|
||||||
|
Loading…
Reference in New Issue
Block a user