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`.
()
| 107 | /// sync with the `matrix.name` field in `.github/workflows/release.yml` |
| 108 | /// and `release-beta.yml`. |
| 109 | pub(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` |
no outgoing calls