Skip to content

Commit

Permalink
chore(ci): add link to macOS ARM builds (#22144)
Browse files Browse the repository at this point in the history
* chore(ci): add link to macOS ARM builds

* tweak
  • Loading branch information
pront authored Jan 15, 2025
1 parent bbaa34c commit b92e285
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions website/cue/reference/administration/downloads.cue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ administration: {
tag: string | *strings.ToLower(arch)
extra?: string
filename: string
version?: string

if extra == _|_ {
filename: "\(tag).\(_file_type)"
Expand Down Expand Up @@ -127,6 +128,12 @@ administration: {
arch: "x86_64"
extra: "apple-darwin"
},
{
target: "arm64-apple-darwin-tar-gz"
arch: "ARM64"
extra: "apple-darwin"
version: "0.44.0"
},
]
},
{
Expand Down
6 changes: 5 additions & 1 deletion website/layouts/partials/download/download-matrix.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
{{/* Targets (ARM, x86_64, etc.) */}}
<div class="flex space-x-1">
{{ range .options }}
{{/* Only render if no version is specified or current version >= minVersion */}}
{{ $minVersion := .version }}
{{ if or (not $minVersion) (ge $version $minVersion) }}
{{ $vector := cond (eq $version "nightly") "vector/nightly" "vector" }}
{{ $url := .download_url | replaceRE "{v1}" $v1 | replaceRE "{v2}" $version }}

Expand All @@ -45,6 +48,7 @@
</span>
</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
Expand All @@ -57,4 +61,4 @@
<a href="{{ $link }}" class="text-sm dark:text-gray-300 hover:text-primary-dark dark:hover:text-secondary dark:text-primary text-secondary" rel="noopener" target="_blank">
browse all files...
</a>
</div>
</div>

0 comments on commit b92e285

Please sign in to comment.