Skip to content

Commit c518416

Browse files
committed
chore: add TDENGINE_DRIVER environment variable for websocket support
1 parent 550d24b commit c518416

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,19 @@ jobs:
7979
with:
8080
cmakeVersion: 3.31.6
8181

82+
- name: Set up Rust
83+
id: setup-rust
84+
uses: dtolnay/rust-toolchain@stable
85+
with:
86+
toolchain: 1.90.0
87+
8288
- name: Determine TDengine branch
8389
uses: haya14busa/action-cond@v1
8490
id: determine-branch
8591
with:
8692
cond: ${{ github.base_ref == 'main' }}
87-
if_true: "main"
88-
if_false: "3.0"
93+
if_true: "feat/TD-38480-3.0"
94+
if_false: "feat/TD-38480-3.0"
8995

9096
- name: Checkout tdengine
9197
uses: actions/checkout@v2
@@ -102,7 +108,7 @@ jobs:
102108
rm build -rf
103109
mkdir build
104110
cd build
105-
cmake ../ -DBUILD_JDBC=false -DCMAKE_INSTALL_PREFIX:PATH=`realpath ../../local/` -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=false
111+
cmake ../ -DWEBSOCKET=true -DBUILD_JDBC=false -DCMAKE_INSTALL_PREFIX:PATH=`realpath ../../local/` -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=false
106112
make -j14
107113
sudo make install
108114
ls -alh /etc/taos/
@@ -126,6 +132,7 @@ jobs:
126132
export LD_LIBRARY_PATH=$PWD/TDengine_v3/build/build/lib
127133
#source $VENV
128134
export TDENGINE_URL=localhost:6041
135+
export TDENGINE_DRIVER=websocket
129136
curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql
130137
poetry run pytest --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest --cov-append tests
131138

0 commit comments

Comments
 (0)