mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
ci: Install Linux dependencies for Collab deployment workflow (#49308)
This PR makes it so we install the necessary Linux dependencies for the Collab deployment workflow. Release Notes: - N/A
This commit is contained in:
parent
958798d20e
commit
da2d4ca5d9
2 changed files with 18 additions and 4 deletions
12
.github/workflows/deploy_collab.yml
vendored
12
.github/workflows/deploy_collab.yml
vendored
|
|
@ -27,6 +27,12 @@ jobs:
|
|||
with:
|
||||
cache: rust
|
||||
path: ~/.rustup
|
||||
- name: steps::setup_linux
|
||||
run: ./script/linux
|
||||
- name: steps::install_mold
|
||||
run: ./script/install-mold
|
||||
- name: steps::download_wasi_sdk
|
||||
run: ./script/download-wasi-sdk
|
||||
- name: steps::cargo_fmt
|
||||
run: cargo fmt --all -- --check
|
||||
- name: steps::clippy
|
||||
|
|
@ -51,6 +57,12 @@ jobs:
|
|||
with:
|
||||
cache: rust
|
||||
path: ~/.rustup
|
||||
- name: steps::setup_linux
|
||||
run: ./script/linux
|
||||
- name: steps::install_mold
|
||||
run: ./script/install-mold
|
||||
- name: steps::download_wasi_sdk
|
||||
run: ./script/download-wasi-sdk
|
||||
- name: steps::cargo_install_nextest
|
||||
uses: taiki-e/install-action@nextest
|
||||
- name: steps::clear_target_dir_if_large
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
use gh_workflow::{Container, Event, Port, Push, Run, Step, Use, Workflow};
|
||||
use indoc::{formatdoc, indoc};
|
||||
|
||||
use crate::tasks::workflows::{
|
||||
runners::{self, Platform},
|
||||
steps::{self, CommonJobConditions, NamedJob, dependant_job, named},
|
||||
vars,
|
||||
use crate::tasks::workflows::runners::{self, Platform};
|
||||
use crate::tasks::workflows::steps::{
|
||||
self, CommonJobConditions, FluentBuilder as _, NamedJob, dependant_job, named,
|
||||
};
|
||||
use crate::tasks::workflows::vars;
|
||||
|
||||
pub(crate) fn deploy_collab() -> Workflow {
|
||||
let style = style();
|
||||
|
|
@ -31,6 +31,7 @@ fn style() -> NamedJob {
|
|||
.add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))
|
||||
.add_step(steps::setup_cargo_config(Platform::Linux))
|
||||
.add_step(steps::cache_rust_dependencies_namespace())
|
||||
.map(steps::install_linux_dependencies)
|
||||
.add_step(steps::cargo_fmt())
|
||||
.add_step(steps::clippy(Platform::Linux)),
|
||||
)
|
||||
|
|
@ -60,6 +61,7 @@ fn tests(deps: &[&NamedJob]) -> NamedJob {
|
|||
.add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))
|
||||
.add_step(steps::setup_cargo_config(Platform::Linux))
|
||||
.add_step(steps::cache_rust_dependencies_namespace())
|
||||
.map(steps::install_linux_dependencies)
|
||||
.add_step(steps::cargo_install_nextest())
|
||||
.add_step(steps::clear_target_dir_if_large(Platform::Linux))
|
||||
.add_step(run_collab_tests()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue