diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 8dd8514482115de69462fa77a18dffa4d9c4ffe6..8975a31b2b6d773c9ae312d610ef295ede25aacb 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -39,6 +39,8 @@ jobs: runs-on: namespace-profile-16x32-ubuntu-2204 env: DOCS_AMPLITUDE_API_KEY: ${{ secrets.DOCS_AMPLITUDE_API_KEY }} + CC: clang + CXX: clang++ steps: - id: resolve-channel name: deploy_docs::resolve_channel_step diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 6a6a089218a2be46005e03dfa9d2aec8eff03659..4ff5a761188bd4caab9ed2a6ad266723873cd54f 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -640,6 +640,8 @@ jobs: runs-on: namespace-profile-16x32-ubuntu-2204 env: DOCS_AMPLITUDE_API_KEY: ${{ secrets.DOCS_AMPLITUDE_API_KEY }} + CC: clang + CXX: clang++ steps: - name: steps::checkout_repo uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd diff --git a/tooling/xtask/src/tasks/workflows/deploy_docs.rs b/tooling/xtask/src/tasks/workflows/deploy_docs.rs index 515b0e647089a96e6ee72453f3765bbaaba2e3e0..766a7e34c21a4318c72c6e6c2ec2e620fbee6083 100644 --- a/tooling/xtask/src/tasks/workflows/deploy_docs.rs +++ b/tooling/xtask/src/tasks/workflows/deploy_docs.rs @@ -84,21 +84,23 @@ fn docs_build_steps( let docs_channel = docs_channel.into(); let site_url = site_url.into(); - job.add_env(("DOCS_AMPLITUDE_API_KEY", vars::DOCS_AMPLITUDE_API_KEY)) - .add_step( - steps::checkout_repo().when_some(checkout_ref, |step, checkout_ref| { - step.with_ref(checkout_ref) - }), - ) - .runs_on(runners::LINUX_XL) - .add_step(steps::setup_cargo_config(runners::Platform::Linux)) - .add_step(steps::cache_rust_dependencies_namespace()) - .map(steps::install_linux_dependencies) - .add_step(steps::script("./script/generate-action-metadata")) - .add_step(lychee_link_check("./docs/src/**/*")) - .add_step(install_mdbook()) - .add_step(build_docs_book(docs_channel, site_url)) - .add_step(lychee_link_check(&format!("{BUILD_OUTPUT_DIR}/docs"))) + steps::use_clang( + job.add_env(("DOCS_AMPLITUDE_API_KEY", vars::DOCS_AMPLITUDE_API_KEY)) + .add_step( + steps::checkout_repo().when_some(checkout_ref, |step, checkout_ref| { + step.with_ref(checkout_ref) + }), + ) + .runs_on(runners::LINUX_XL) + .add_step(steps::setup_cargo_config(runners::Platform::Linux)) + .add_step(steps::cache_rust_dependencies_namespace()) + .map(steps::install_linux_dependencies) + .add_step(steps::script("./script/generate-action-metadata")) + .add_step(lychee_link_check("./docs/src/**/*")) + .add_step(install_mdbook()) + .add_step(build_docs_book(docs_channel, site_url)) + .add_step(lychee_link_check(&format!("{BUILD_OUTPUT_DIR}/docs"))), + ) } fn docs_deploy_steps(job: Job, project_name: &StepOutput) -> Job {