Skip to content

Commit

Permalink
optional clickhouse binary
Browse files Browse the repository at this point in the history
floating version because I failed to find versioned URLs

also new os var name because the linux urls omit OS
  • Loading branch information
solsson committed Oct 6, 2024
1 parent abe3ba4 commit dc41cd8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bin/y-bin-download
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ osmac() {
esac
}

osmac_() {
os=$(os)
case $os in
darwin) echo 'macos-' ;;
*) echo "" ;;
esac
}

Os() {
uname -s
}
Expand Down
4 changes: 4 additions & 0 deletions bin/y-bin-download-next
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ arch=amd64
xarch=x86_64
osx=osx
osmac=macos
osmac_=macos
Os=Darwin
arm=""
xarm=x
Expand All @@ -56,6 +57,7 @@ arch=arm64
xarch=arm64
osx=osx
osmac=macos
osmac_=macos
Os=Darwin
arm=arm
xarm=arm
Expand All @@ -68,6 +70,7 @@ arch=amd64
xarch=x86_64
osx=linux
osmac=linux
osmac_=""
Os=Linux
arm=""
xarm=x
Expand All @@ -80,6 +83,7 @@ arch=arm64
xarch=arm64
osx=linux
osmac=linux
osmac_=""
Os=Linux
arm=arm
xarm=arm
Expand Down
10 changes: 10 additions & 0 deletions bin/y-bin.optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,13 @@ watchexec:
archive:
tool: tarxz
path: watchexec-${version}-${aarch}-apple-${os}/watchexec

clickhouse:
version: master
templates:
download: https://builds.clickhouse.com/${version}/${osmac_}${aarch64}/clickhouse
sha256:
darwin_amd64: 6e39b2d5d1c0bd42e3330144dcd56a8c778607b5bbf27baa1cbea5dda0e506e3
darwin_arm64: b68184f50d98fbb58481c35c170e2c498cce793511ccb229f02610c936e25166
linux_amd64: dd94744a3e9b6b4e2d873ecf8de050cc01c4a59bffb3b2911c709ec23913c362
linux_arm64: 472351e92e1914625778b7b02acf7aae6398c1fcfd017c0ebae8e4b69cf0788e

0 comments on commit dc41cd8

Please sign in to comment.