microsoft/openvmm
Publicmirrored fromhttps://github.com/microsoft/openvmmAvailable
flowey/flowey_hvlite/src/pipelines_shared/gh_flowey_bootstrap_template.rs
19lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | //! See [`get_template`] |
| 5 | |
| 6 | /// Get our internal flowey bootstrap template. |
| 7 | /// |
| 8 | /// See [`Pipeline::gh_set_flowey_bootstrap_template`] |
| 9 | /// |
| 10 | /// [`Pipeline::gh_set_flowey_bootstrap_template`]: |
| 11 | /// flowey::pipeline::prelude::Pipeline::gh_set_flowey_bootstrap_template |
| 12 | pub fn get_template() -> String { |
| 13 | let template = include_str!("gh_flowey_bootstrap_template.yml").to_string(); |
| 14 | |
| 15 | template.replace( |
| 16 | "{{RUSTUP_TOOLCHAIN}}", |
| 17 | flowey_lib_hvlite::_jobs::cfg_versions::RUSTUP_TOOLCHAIN, |
| 18 | ) |
| 19 | } |