mirror of
https://github.com/clangd/clangd.git
synced 2025-04-05 08:22:10 +00:00
Build clangd-indexer and upload an asset with it next to clangd.zip (#560)
This commit is contained in:
parent
f34af43022
commit
6ab953a853
22
.github/workflows/autobuild.yaml
vendored
22
.github/workflows/autobuild.yaml
vendored
@ -51,6 +51,7 @@ jobs:
|
|||||||
"-DLLVM_ENABLE_ZLIB=OFF"
|
"-DLLVM_ENABLE_ZLIB=OFF"
|
||||||
"-DLLVM_USE_CRT_RELEASE=MT"
|
"-DLLVM_USE_CRT_RELEASE=MT"
|
||||||
"-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON"
|
"-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON"
|
||||||
|
binary_extension: ".exe"
|
||||||
- name: mac
|
- name: mac
|
||||||
os: macos-latest
|
os: macos-latest
|
||||||
preinstall: brew install ninja zlib p7zip
|
preinstall: brew install ninja zlib p7zip
|
||||||
@ -152,19 +153,24 @@ jobs:
|
|||||||
"-DGRPC_INSTALL_PATH=grpc-installation"
|
"-DGRPC_INSTALL_PATH=grpc-installation"
|
||||||
${{ matrix.config.cmake }}
|
${{ matrix.config.cmake }}
|
||||||
- name: Ninja
|
- name: Ninja
|
||||||
run: ninja -C ${{ env.CLANGD_DIR }} clangd
|
run: ninja -C ${{ env.CLANGD_DIR }} clangd clangd-indexer
|
||||||
- name: Archive
|
- name: Archive clangd
|
||||||
run: >
|
run: >
|
||||||
7z a clangd.zip
|
7z a clangd.zip
|
||||||
${{ env.CLANGD_DIR }}/LICENSE.TXT
|
${{ env.CLANGD_DIR }}/LICENSE.TXT
|
||||||
${{ env.CLANGD_DIR }}/bin/clangd*
|
${{ env.CLANGD_DIR }}/bin/clangd${{ matrix.config.binary_extension }}
|
||||||
${{ env.CLANGD_DIR }}/lib/clang
|
${{ env.CLANGD_DIR }}/lib/clang
|
||||||
|
- name: Archive indexing-tools
|
||||||
|
run: >
|
||||||
|
7z a indexing-tools.zip
|
||||||
|
${{ env.CLANGD_DIR }}/LICENSE.TXT
|
||||||
|
${{ env.CLANGD_DIR }}/bin/clangd-indexer${{ matrix.config.binary_extension }}
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.config.name }}
|
name: ${{ matrix.config.name }}
|
||||||
path: clangd.zip
|
path: clangd.zip
|
||||||
- name: Upload asset
|
- name: Upload clangd asset
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env: { GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}" }
|
env: { GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}" }
|
||||||
with:
|
with:
|
||||||
@ -172,6 +178,14 @@ jobs:
|
|||||||
asset_name: clangd-${{ matrix.config.name }}-${{ github.event.release.tag_name }}.zip
|
asset_name: clangd-${{ matrix.config.name }}-${{ github.event.release.tag_name }}.zip
|
||||||
asset_path: clangd.zip
|
asset_path: clangd.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
- name: Upload indexing-tools asset
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
env: { GITHUB_TOKEN: "${{ secrets.RELEASE_TOKEN }}" }
|
||||||
|
with:
|
||||||
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
|
asset_name: clangd-indexing-tools-${{ matrix.config.name }}-${{ github.event.release.tag_name }}.zip
|
||||||
|
asset_path: indexing-tools.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
- name: Check binary compatibility
|
- name: Check binary compatibility
|
||||||
if: matrix.config.name == 'linux'
|
if: 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"
|
||||||
|
Loading…
Reference in New Issue
Block a user