fix: usql version upgrade
CI / All (ubuntu-latest) (push) Failing after 24s
CI / All (macos-latest) (push) Has been cancelled
CI / All (windows-latest) (push) Has been cancelled

This commit is contained in:
2026-06-19 12:45:41 -06:00
parent f69aba2dd8
commit 4b7e242998
+6 -5
View File
@@ -257,17 +257,18 @@ commands:
description: Install uv (required for Python-based custom tools) description: Install uv (required for Python-based custom tools)
- command: | - command: |
set -euo pipefail set -euo pipefail
USQL_VERSION="0.19.20" USQL_VERSION=$(curl -sSL https://api.github.com/repos/xo/usql/releases/latest | jq -r .tag_name | sed 's/^v//')
ARCH=$(uname -m) ARCH=$(uname -m)
case "$ARCH" in case "$ARCH" in
x86_64) USQL_ARCH=amd64 ;; x86_64) USQL_ARCH=amd64 ;;
aarch64) USQL_ARCH=arm64 ;; aarch64) USQL_ARCH=arm64 ;;
*) echo "Unsupported arch for usql install: $ARCH" >&2; exit 1 ;; *) echo "Unsupported arch for usql install: $ARCH" >&2; exit 1 ;;
esac esac
curl -sSL "https://github.com/xo/usql/releases/download/v${USQL_VERSION}/usql_static-${USQL_VERSION}-linux-${USQL_ARCH}.tar.bz2" -o /tmp/usql.tar.bz2 TMPDIR=$(mktemp -d)
sudo tar -xjf /tmp/usql.tar.bz2 -C /usr/local/bin trap 'rm -rf "$TMPDIR"' EXIT
sudo chmod +x /usr/local/bin/usql curl -sSL "https://github.com/xo/usql/releases/download/v${USQL_VERSION}/usql_static-${USQL_VERSION}-linux-${USQL_ARCH}.tar.bz2" -o "$TMPDIR/usql.tar.bz2"
rm -f /tmp/usql.tar.bz2 tar -xjf "$TMPDIR/usql.tar.bz2" -C "$TMPDIR"
sudo install -m 0755 "$TMPDIR/usql_static" /usr/local/bin/usql
user: "1000" user: "1000"
description: Install the usql universal SQL CLI (used by the built-in sql agent and execute_sql_code tool) description: Install the usql universal SQL CLI (used by the built-in sql agent and execute_sql_code tool)
- command: | - command: |