Skip to content

Commit 08edd3d

Browse files
committed
feat: add riscv64 support to yq toolchain
1 parent bdc6ade commit 08edd3d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: lib/private/yq_toolchain.bzl

+16
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ YQ_PLATFORMS = {
3434
"@platforms//cpu:s390x",
3535
],
3636
),
37+
"linux_riscv64": struct(
38+
compatible_with = [
39+
"@platforms//os:linux",
40+
"@platforms//cpu:riscv64",
41+
],
42+
),
3743
"linux_ppc64le": struct(
3844
compatible_with = [
3945
"@platforms//os:linux",
@@ -61,6 +67,16 @@ DEFAULT_YQ_VERSION = "4.25.2"
6167
# Alternatively, you can compute them manually by running
6268
# `shasum -b -a 384 [downloaded file] | awk '{ print $1 }' | xxd -r -p | base64`
6369
YQ_VERSIONS = {
70+
"4.45.1": {
71+
"darwin_amd64": "sha384-ZoEgzfCLmDk7eoKdJSoq/nny1iX3Cq9mMJ3gnPZ2ejhKMxSgHUQIa7MREToxYl6Z",
72+
"darwin_arm64": "sha384-nHYFqoarTzGba/XtpN8N3U0X9hMTg64Vn7XZ8yiF2cbJFdY3VWFVw80vsg/JXaOg",
73+
"linux_amd64": "sha384-hkMtSRoq1GZKoH9C6OesKhgFLtkcm91wUD2W7L/xlAOS7jZbii23uEMHApo5r7Qs",
74+
"linux_arm64": "sha384-4N6BWZ7ExxmnfqXGGTo7Szi73kJfbgMaUXW0FT10kcy2fNW0VbjBBAfClC14lES2",
75+
"linux_s390x": "sha384-DRzz5Sb3JvwDVjQWGVto3Eh7a7tNQmwXZtMTQy+SidCYGQ2sLA3SQqqsQicNaD8A",
76+
"linux_riscv64": "sha384-/4wDvlLP7f3lvEU/hrCa6wcGLzj8z1PYkWlULxIWHGn65Ai5xnI+Dp21VnM7iyi3",
77+
"linux_ppc64le": "sha384-pnzDz7jn4b+1wOeasaEU6q5ASQhZw0Uz6sEehzpztqQglU6ynTkS8n4Nw/oqG5y9",
78+
"windows_amd64": "sha384-P5c1L9KPhkLdByJ3G8IL3ouwNojoHSDDz6N851RRXxK1Y+ssYKPO/cbQzjQnpKvc",
79+
},
6480
"4.33.3": {
6581
"darwin_amd64": "sha384-IJhMHD71yq+OR8AHFPfZr3XVpFlG2ZAfcexDKojtSLcCMV1pw0X2jza4qFUZiKEt",
6682
"darwin_arm64": "sha384-euQkz1Bu/dFuJoRgG4xIh9BhP2RvOceTDPSY8EzSIM5xykbMkwDNhr1PtCcUF5ye",

Diff for: tools/yq_mirror_release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ chmod u+x extract-checksum.sh
2121

2222
# Extract the checksums and output a starlark map entry
2323
echo "\"$version\": {"
24-
platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,ppc64le} windows_amd64)
24+
platforms=(darwin_{amd64,arm64} linux_{amd64,arm64,s390x,riscv64,ppc64le} windows_amd64)
2525
for release in ${platforms[@]}; do
2626
artifact=$release
2727
if [[ $release == windows* ]]; then

0 commit comments

Comments
 (0)