Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ci: Update workflows/scripts for deploying collab to use clang (#51224)
Jakub Konka38fa78cec7af
diff --git a/.github/workflows/deploy_collab.yml b/.github/workflows/deploy_collab.ymlindex 89fb6980b65..0d98438c9e3 100644--- a/.github/workflows/deploy_collab.yml+++ b/.github/workflows/deploy_collab.yml@@ -12,6 +12,9 @@ jobs:if: (github.repository_owner == 'zed-industries' || github.repository_owner == 'zed-extensions')name: Check formatting and Clippy lintsruns-on: namespace-profile-16x32-ubuntu-2204+ env:+ CC: clang+ CXX: clang++steps:- name: steps::checkout_repouses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683@@ -42,6 +45,9 @@ jobs:- stylename: Run testsruns-on: namespace-profile-16x32-ubuntu-2204+ env:+ CC: clang+ CXX: clang++steps:- name: steps::checkout_repouses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683diff --git a/Dockerfile-collab b/Dockerfile-collabindex 63359334906..50af874200a 100644--- a/Dockerfile-collab+++ b/Dockerfile-collab@@ -14,8 +14,12 @@ ARG GITHUB_SHAENV GITHUB_SHA=$GITHUB_SHA# Also add `cmake`, since we need it to build `wasmtime`.+# clang is needed because `webrtc-sys` uses Clang-specific compiler flags.RUN apt-get update; \- apt-get install -y --no-install-recommends cmake+ apt-get install -y --no-install-recommends cmake clang++ENV CC=clang+ENV CXX=clang++RUN --mount=type=cache,target=./script/node_modules \--mount=type=cache,target=/usr/local/cargo/registry \diff --git a/tooling/xtask/src/tasks/workflows/deploy_collab.rs b/tooling/xtask/src/tasks/workflows/deploy_collab.rsindex 300680f95b8..a13e5684f61 100644--- a/tooling/xtask/src/tasks/workflows/deploy_collab.rs+++ b/tooling/xtask/src/tasks/workflows/deploy_collab.rs@@ -3,7 +3,7 @@ use indoc::indoc;use crate::tasks::workflows::runners::{self, Platform};use crate::tasks::workflows::steps::{- self, CommonJobConditions, FluentBuilder as _, NamedJob, dependant_job, named,+ self, CommonJobConditions, FluentBuilder as _, NamedJob, dependant_job, named, use_clang,};use crate::tasks::workflows::vars;@@ -23,7 +23,7 @@ pub(crate) fn deploy_collab() -> Workflow {}fn style() -> NamedJob {- named::job(+ named::job(use_clang(dependant_job(&[]).name("Check formatting and Clippy lints").with_repository_owner_guard()@@ -34,7 +34,7 @@ fn style() -> NamedJob {.map(steps::install_linux_dependencies).add_step(steps::cargo_fmt()).add_step(steps::clippy(Platform::Linux)),- )+ ))}fn tests(deps: &[&NamedJob]) -> NamedJob {@@ -42,7 +42,7 @@ fn tests(deps: &[&NamedJob]) -> NamedJob {named::bash("cargo nextest run --package collab --no-fail-fast")}- named::job(+ named::job(use_clang(dependant_job(deps).name("Run tests").runs_on(runners::LINUX_XL)@@ -65,7 +65,7 @@ fn tests(deps: &[&NamedJob]) -> NamedJob {.add_step(steps::cargo_install_nextest()).add_step(steps::clear_target_dir_if_large(Platform::Linux)).add_step(run_collab_tests()),- )+ ))}fn publish(deps: &[&NamedJob]) -> NamedJob {