Commit Graph

59 Commits

Author SHA1 Message Date
wusatosi
c5918af900
clean up 2023-05-03 10:49:41 -04:00
wusatosi
3a8d41e5bc
discard use of release.env 2023-05-03 10:42:43 -04:00
wusatosi
fe23e62a07
Prefer GitHub Cli 2023-05-02 03:32:51 -04:00
wusatosi
ba825b6b47
UPLOAD_URL and RELEASE_ID is no longer needed 2023-05-02 02:46:23 -04:00
wusatosi
ce53020ffa
Specifies v1 2023-05-02 02:33:14 -04:00
wusatosi
1b8c30edc5
Use setup-gh 2023-05-02 01:38:27 -04:00
wusatosi
de9c6cd278
Install github ci on linux instance 2023-04-19 15:58:53 -04:00
wusatosi
875100e4a3
Merge upload clangd and indexing tool as single step
Prob less error prone?
2023-04-18 01:46:03 -04:00
wusatosi
0b80fc95b5
Maybe a fix for ubuntu? 2023-04-18 01:28:33 -04:00
wusatosi
2d0d12fd73
Fix indexing tool upload file name 2023-04-18 01:15:03 -04:00
wusatosi
66d081283d
add release token 2023-04-17 18:27:11 -04:00
wusatosi
dfd2cdeac9
specificy repo for action-gh-release 2023-04-17 18:09:41 -04:00
wusatosi
8503a3a52d
correct *.env file path 2023-04-17 18:00:50 -04:00
wusatosi
df6614bbff
use gh for publishing release 2023-04-17 17:23:12 -04:00
wusatosi
72602a5f4d
disuse actions/upload-release-asset 2023-04-17 17:06:17 -04:00
wusatosi
30668562a7
actions/create-release -> softprops/action-gh-release 2023-04-17 16:43:44 -04:00
wusatosi
93156b38a4
Update actions/* dependencies 2023-04-17 14:01:24 -04:00
Kadir Cetinkaya
6e7f5968ba Use ubuntu-18.04 container to build linux binaries
Github action runners no longer support ubuntu-18.04 hosts and starting
with ubuntu-20.04 our binaries depend on glibc2.30, which is quite
recent. We're switching to building on ubuntu-18.04 containers instead
to not increase requirements.
2023-04-14 18:34:25 +02:00
Sam McCall
a729875fb1
Disable zstd (we don't use it)
This was leading to "library not loaded" errors on macs with no zstd
2022-09-15 20:06:18 +02:00
Kadir Cetinkaya
1a90fba271 Use windows-2019 explicitly in CI 2022-02-21 16:03:58 +01:00
Kadir Cetinkaya
f707dfdeab Use bash shell in Install OpenMP task and don't let copy fail 2022-01-21 09:45:27 +01:00
Kadir Cetinkaya
ebce136114 Fix windows snapshot builds 2022-01-17 14:05:27 +01:00
Sam McCall
19a7bfdb2d Oops, fix path to OpenMP headers. 2022-01-03 18:30:19 +01:00
Sam McCall
9d058532be Include omp{,-tools}.h in the releases
This is really ugly, but AFAICT:
 - omp.h is not a "builtin clang header" in the usual sense, but when
   openmp is built it installs to clang's resource dir to be "always
   available"
 - this makes it into clang packages, e.g. debian's libclang-common-11-dev.
 - as a result, if we don't ship it, then <omp.h> can be found by system
   clang but not by us.
2022-01-03 18:30:19 +01:00
Kadir Cetinkaya
1a5759b2da Explicitly set OSX_DEPLOYMENT_TARGET in cmake flags, as
matrix.config.env is not propagated into job's env variables.
2021-11-04 11:37:08 +01:00
Kirill Bobyrev
c0845399c6
Merge periodic workflow into autobuild (#786)
The only reason to have a separate periodic action was the ability to
run the action "manually" by creating an appropriate release. With the
workflow_dispatch, we can actually trigger the workflow manually with
a convenient UI. Hence, periodic is no longer needed.
2021-08-04 16:04:55 +03:00
Kadir Cetinkaya
e2345b0261 Build fat binaries for mac 2021-07-09 10:12:57 +02:00
Kirill Bobyrev
186c1cfe5b
Bump gRPC version: 1.33.2 -> 1.36.3 (#783)
Builds started to fail
(https://github.com/clangd/clangd/runs/2595990099?check_suite_focus=true)
because Abseil source file (built as a part of gRPC) was using
`std::numeric_limits` and `uint32_t` but not including `<limits>` and
`<cstdint>` directly
(df3ea785d8/absl/synchronization/internal/graphcycles.cc).

This worked with libstdc++ 10 but GitHub Actions recently updated the
toolchain for Ubuntu 18.04 LTS we're using
(0409144182 (diff-8d528b68ca937dfe5a0194829f0eb2633bc3d7a3105a637ccb534a4da765f7a3R17)).
libstdc++ 11 changed the standard headers and is now less forgiving when
it comes to `<limits>` and few other headers not being included directly
(https://gcc.gnu.org/gcc-11/porting_to.html#:~:text=%3Climits%3E%20%28for%20std%3A%3Anumeric_limits%29).

This patch increases the gRPC version we use to fix the CI. Another
viable solution is "downgrading" back to libstdc++10 (e.g. via `sudo
apt-get remove -y libgcc-11-dev`).

This also requires changes in
https://github.com/llvm/llvm-zorg/blob/master/buildbot/google/docker/buildbot-clangd-ubuntu-clang/Dockerfile
for consistency.
2021-06-07 15:30:56 +03:00
Kirill Bobyrev
c4786ebf83 Revert "Downgrade to libgcc10"
This reverts commit 608aa9953c in favor of
https://github.com/clangd/clangd/pull/783
2021-06-07 14:29:21 +02:00
Kadir Cetinkaya
608aa9953c Downgrade to libgcc10
gRPC version we use cannot be compiled with libstdc++ that comes with
gcc11 due to a change in transitive dependencies.

This is a temporary fix until we bump the grpc version in a bunch of
deployments.
2021-05-21 11:44:15 +02:00
Kadir Cetinkaya
d78d99d3f3 Package index-server-monitor in indexing-tools 2021-05-04 13:06:09 +02:00
Sam McCall
ec24d11c53 Rename clangd-indexing-tools-platform-version.zip -> clangd_indexing_tools-platform-version.zip
This allows autoupdate to work in our buggy clients.
See https://github.com/clangd/vscode-clangd/issues/180

Stylistic justification: "clangd_indexing_tools" is one "word" in the
"name-platform-version.zip" naming convention.
2021-04-22 12:17:05 +02:00
Kirill Bobyrev
d36dadfd99
Fix the typo (gthub -> github) 2021-04-21 18:42:27 +02:00
Kirill Bobyrev
fc7440e2e5
Allow using a different repository for the manual release (#754)
Extract the repository from the release message. This will help us have
more control over the release process.
2021-04-21 19:37:50 +03:00
Kadir Cetinkaya
411063a83a Use ubuntu-18 for older glibc
There's pthread_cond_clockwait@GLIBC_2.30 introduced with new glibc,
which isn't available in older versions. To prevent such breakages we
are sticking to ubuntu-18 rather than moving to ubuntu-20.

For a sample error see
https://github.com/kadircet/clangd/runs/2011039246?check_suite_focus=true.

Version label grabbed from
https://github.com/actions/virtual-environments.
2021-03-02 15:02:21 +01:00
Kadir Cetinkaya
239800b0c5
Trim trailing newlines for non-linux too 2021-03-02 08:34:05 +01:00
Kadir Cetinkaya
e279de4b94
Trim trailing newlines from cmake args 2021-03-02 08:24:46 +01:00
Kirill Bobyrev
fead93d1a9
Fix YAML syntax
Additional newline is created for CMake arguments.
2021-03-02 07:05:24 +01:00
Kirill Bobyrev
fc26be2c43
Fix the build after 40114796f0
That patch added new flags but gRPC is still built with GNU C++
compiler. If we're trying to build both gRPC and LLVM with the same set
of flags, we should enforce additional CMake flags for gRPC.
2021-03-02 06:58:25 +01:00
Kadir Cetinkaya
3d90b39e96
Get rid of stale fixme 2021-02-26 14:55:06 +01:00
Kadir Cetinkaya
40114796f0 Include lib_compat.h while building gRPC
While building clangd binaries we set required glibc version for symbols
to a minimum to cover systems with older glibc implementations. But we
were not doing that while building gRPC, which might depend on never
versions of these symbols.
2021-02-26 12:50:28 +01:00
Kirill Bobyrev
bef10dc3c8
Do not upload in autobuild job (#563)
Artifacts are used to pass data from one job to another but we upload
release assets in the same job we build them, hence artifacts are
redundant.
2021-02-17 12:53:11 +03:00
Kirill Bobyrev
ebde6ecac4
Expand path to grpc-installation directory
Weekly snapshot builds are failing because CMake couldn't find gRPC and
Protobuf libraries. Expanding the path from relative to the full one
solves the problem.

Fixes: https://github.com/clangd/clangd/issues/641
2021-01-13 12:11:12 +01:00
Sam McCall
ae38d57cb9 Remove obsolete compiler hack from windows build config.
MSVC version is now 16.7+, see
https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md
2020-11-29 12:27:07 +01:00
Kirill Bobyrev
94b525b2ee
Bump gRPC version to 1.33.2 (#592)
* Bump gRPC version to 1.33.2

This is the same version we are using in our buildbot, so this will
surely be the "stable" version for us right now.
2020-11-17 18:02:12 +03:00
Kirill Bobyrev
02bad4f0eb
Bundle headers in indexing-tools release archive (#570) 2020-10-23 17:00:11 +02:00
Kirill Bobyrev
8d1f3300c5
Enable gRPC support for macOS and Windows (#565) 2020-10-18 13:58:12 +02:00
Kirill Bobyrev
6f906275b0
Add clangd-index-server to release asset 2020-10-18 11:30:15 +02:00
Kirill Bobyrev
6ab953a853
Build clangd-indexer and upload an asset with it next to clangd.zip (#560) 2020-10-16 17:04:12 +02:00
Kirill Bobyrev
f34af43022
Enable gRPC support for clangd on Linux (#561)
This patch introduces remote index support for binaries built on Linux. Other platforms will be added soon.
2020-10-16 17:03:34 +02:00