MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / current_platform

Function current_platform

src/cloud.rs:109–123  ·  view source on GitHub ↗

Returns the platform slug matching the CI release matrix. Must stay in sync with the `matrix.name` field in `.github/workflows/release.yml` and `release-beta.yml`.

()

Source from the content-addressed store, hash-verified

107/// sync with the `matrix.name` field in `.github/workflows/release.yml`
108/// and `release-beta.yml`.
109pub(crate) fn current_platform() -> &'static str {
110 if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") {
111 "aarch64-macos"
112 } else if cfg!(target_os = "macos") && cfg!(target_arch = "x86_64") {
113 "x86_64-macos"
114 } else if cfg!(target_os = "linux") && cfg!(target_arch = "x86_64") {
115 "x86_64-linux"
116 } else if cfg!(target_os = "linux") && cfg!(target_arch = "aarch64") {
117 "aarch64-linux"
118 } else if cfg!(target_os = "windows") {
119 "x86_64-windows"
120 } else {
121 "unknown"
122 }
123}
124
125/// Archive naming convention per platform. Must stay in sync with the
126/// `tar czf` / `Compress-Archive` invocations in `.github/workflows/release.yml`

Callers 2

platform_asset_nameFunction · 0.85

Calls

no outgoing calls

Tested by 1