Skip to content

Commit a5d8eb2

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

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
test:
1515
runs-on: ubuntu-22.04
1616
steps:
17+
- name: Set up Rust
18+
id: setup-rust
19+
uses: dtolnay/rust-toolchain@stable
20+
with:
21+
toolchain: 1.90.0
22+
1723
- name: Checkout
1824
uses: actions/checkout@v3
1925

@@ -79,13 +85,19 @@ jobs:
7985
with:
8086
cmakeVersion: 3.31.6
8187

88+
# - name: Set up Rust
89+
# id: setup-rust
90+
# uses: dtolnay/rust-toolchain@stable
91+
# with:
92+
# toolchain: 1.90.0
93+
8294
- name: Determine TDengine branch
8395
uses: haya14busa/action-cond@v1
8496
id: determine-branch
8597
with:
8698
cond: ${{ github.base_ref == 'main' }}
87-
if_true: "main"
88-
if_false: "3.0"
99+
if_true: "feat/TD-38480-3.0"
100+
if_false: "feat/TD-38480-3.0"
89101

90102
- name: Checkout tdengine
91103
uses: actions/checkout@v2
@@ -102,7 +114,7 @@ jobs:
102114
rm build -rf
103115
mkdir build
104116
cd build
105-
cmake ../ -DBUILD_JDBC=false -DCMAKE_INSTALL_PREFIX:PATH=`realpath ../../local/` -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=false
117+
cmake ../ -DWEBSOCKET=true -DBUILD_JDBC=false -DCMAKE_INSTALL_PREFIX:PATH=`realpath ../../local/` -DBUILD_HTTP=false -DBUILD_DEPENDENCY_TESTS=false
106118
make -j14
107119
sudo make install
108120
ls -alh /etc/taos/
@@ -126,6 +138,7 @@ jobs:
126138
export LD_LIBRARY_PATH=$PWD/TDengine_v3/build/build/lib
127139
#source $VENV
128140
export TDENGINE_URL=localhost:6041
141+
export TDENGINE_DRIVER=websocket
129142
curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql
130143
poetry run pytest --cov-report term --cov-report html --cov-report xml --cov=taos --cov=taosrest --cov-append tests
131144

0 commit comments

Comments
 (0)