const CHECKOUT_VERSION: &str = "v6";
const UPLOAD_ARTIFACT_VERSION: &str = "v7";
const BUILD_LINUX_GNU: &str = include_str!("build-linux-gnu.txt");
const BUILD_LINUX_MUSL: &str = include_str!("build-linux-musl.txt");
const BUILD_MACOS: &str = include_str!("build-macos.txt");
const BUILD_MACOS_AARCH64: &str = include_str!("build-macos-aarch64.txt");
const BUILD_WINDOWS: &str = include_str!("build-windows.txt");
pub fn get_build_linux_gnu() -> String {
replace_variables(BUILD_LINUX_GNU)
}
pub fn get_build_linux_musl() -> String {
replace_variables(BUILD_LINUX_MUSL)
}
pub fn get_build_macos() -> String {
replace_variables(BUILD_MACOS)
}
pub fn get_build_macos_aarch64() -> String {
replace_variables(BUILD_MACOS_AARCH64)
}
pub fn get_build_windows() -> String {
replace_variables(BUILD_WINDOWS)
}
fn replace_variables(input: &str) -> String {
input
.replace("{{CHECKOUT-VERSION}}", CHECKOUT_VERSION)
.replace("{{UPLOAD-ARTIFACT-VERSION}}", UPLOAD_ARTIFACT_VERSION)
}