Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add link to macOS ARM builds #22144

Merged
merged 4 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading