Skip to content

Commit

Permalink
chore(ci): install bendsql from packages (#16970)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Nov 29, 2024
1 parent cc4d3f2 commit 21e1d9a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/actions/setup_bendsql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,34 @@ description: "Setup BendSQL for CI"
runs:
using: "composite"
steps:
- name: Download and Install for Linux
- name: Install for Linux
if: runner.os == 'Linux'
shell: bash
run: |
if bendsql --version; then
exit 0
fi
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/v0.23.2/bendsql-x86_64-unknown-linux-gnu.tar.gz
tar -xzf /tmp/bendsql.tar.gz -C /tmp
mv /tmp/bendsql /usr/local/bin/bendsql
case $RUNNER_PROVIDER in
aws)
aws s3 cp s3://databend-ci/packages/bendsql_$(dpkg --print-architecture).deb /tmp/bendsql.deb
sudo dpkg -i /tmp/bendsql.deb
;;
gcp)
gsutil cp gs://databend-ci/packages/bendsql_$(dpkg --print-architecture).deb /tmp/bendsql.deb
sudo dpkg -i /tmp/bendsql.deb
;;
*)
curl -fsSL https://repo.databend.com/install/bendsql.sh | bash -s -- -y --prefix /usr/local
;;
esac
bendsql --version
- name: Download and Install for macOS
- name: Install for macOS
if: runner.os == 'macOS'
shell: bash
run: |
if bendsql --version; then
exit 0
fi
curl --retry 5 -Lo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/v0.23.2/bendsql-x86_64-apple-darwin.tar.gz
tar -xzf /tmp/bendsql.tar.gz -C /tmp
mv /tmp/bendsql /usr/local/bin/bendsql
brew install databendcloud/homebrew-tap/bendsql
bendsql --version

0 comments on commit 21e1d9a

Please sign in to comment.