Skip to content

Commit da2d4ca

Browse files
authored
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
1 parent 958798d commit da2d4ca

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

.github/workflows/deploy_collab.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ jobs:
2727
with:
2828
cache: rust
2929
path: ~/.rustup
30+
- name: steps::setup_linux
31+
run: ./script/linux
32+
- name: steps::install_mold
33+
run: ./script/install-mold
34+
- name: steps::download_wasi_sdk
35+
run: ./script/download-wasi-sdk
3036
- name: steps::cargo_fmt
3137
run: cargo fmt --all -- --check
3238
- name: steps::clippy
@@ -51,6 +57,12 @@ jobs:
5157
with:
5258
cache: rust
5359
path: ~/.rustup
60+
- name: steps::setup_linux
61+
run: ./script/linux
62+
- name: steps::install_mold
63+
run: ./script/install-mold
64+
- name: steps::download_wasi_sdk
65+
run: ./script/download-wasi-sdk
5466
- name: steps::cargo_install_nextest
5567
uses: taiki-e/install-action@nextest
5668
- name: steps::clear_target_dir_if_large

tooling/xtask/src/tasks/workflows/deploy_collab.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use gh_workflow::{Container, Event, Port, Push, Run, Step, Use, Workflow};
22
use indoc::{formatdoc, indoc};
33

4-
use crate::tasks::workflows::{
5-
runners::{self, Platform},
6-
steps::{self, CommonJobConditions, NamedJob, dependant_job, named},
7-
vars,
4+
use crate::tasks::workflows::runners::{self, Platform};
5+
use crate::tasks::workflows::steps::{
6+
self, CommonJobConditions, FluentBuilder as _, NamedJob, dependant_job, named,
87
};
8+
use crate::tasks::workflows::vars;
99

1010
pub(crate) fn deploy_collab() -> Workflow {
1111
let style = style();
@@ -31,6 +31,7 @@ fn style() -> NamedJob {
3131
.add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))
3232
.add_step(steps::setup_cargo_config(Platform::Linux))
3333
.add_step(steps::cache_rust_dependencies_namespace())
34+
.map(steps::install_linux_dependencies)
3435
.add_step(steps::cargo_fmt())
3536
.add_step(steps::clippy(Platform::Linux)),
3637
)
@@ -60,6 +61,7 @@ fn tests(deps: &[&NamedJob]) -> NamedJob {
6061
.add_step(steps::checkout_repo().add_with(("fetch-depth", 0)))
6162
.add_step(steps::setup_cargo_config(Platform::Linux))
6263
.add_step(steps::cache_rust_dependencies_namespace())
64+
.map(steps::install_linux_dependencies)
6365
.add_step(steps::cargo_install_nextest())
6466
.add_step(steps::clear_target_dir_if_large(Platform::Linux))
6567
.add_step(run_collab_tests()),

0 commit comments

Comments
 (0)