From 5b887c7017a59a40dc7bf45e0fa55a7d9e6225f8 Mon Sep 17 00:00:00 2001 From: t_max <1172915550@qq.com> Date: Thu, 29 Aug 2024 13:59:34 +0800 Subject: [PATCH] chore: merge 3.1 to 3.0 --- .github/workflows/compatibility.yml | 140 +++++++++++++++++++++++++ .github/workflows/go.yml | 1 + .github/workflows/push.yml | 1 + README-CN.md | 27 +++-- README.md | 29 ++++-- taosRestful/connection.go | 29 ++++-- taosRestful/connector_test.go | 153 ++++++++++++++++++++++++++++ taosRestful/dsn.go | 6 ++ taosRestful/dsn_test.go | 24 +++-- wrapper/stmt_test.go | 2 - 10 files changed, 367 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/compatibility.yml diff --git a/.github/workflows/compatibility.yml b/.github/workflows/compatibility.yml new file mode 100644 index 0000000..956433b --- /dev/null +++ b/.github/workflows/compatibility.yml @@ -0,0 +1,140 @@ +name: compatibility + +on: + pull_request: + branches: + - '3.1' + +jobs: + build: + runs-on: ubuntu-22.04 + strategy: + matrix: + td_version: [ 'main', '3.0' ] + name: Build ${{ matrix.td_version }} + outputs: + commit_id: ${{ steps.get_commit_id.outputs.commit_id }} + steps: + - name: checkout TDengine by pr + if: github.event_name == 'pull_request' + uses: actions/checkout@v3 + with: + repository: 'taosdata/TDengine' + path: 'TDengine' + ref: ${{ matrix.td_version }} + + - name: get_commit_id + id: get_commit_id + run: | + cd TDengine + echo "commit_id=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + + + - name: Cache server by pr + if: github.event_name == 'pull_request' + id: cache-server-pr + uses: actions/cache@v3 + with: + path: server.tar.gz + key: ${{ runner.os }}-build-${{ matrix.td_version }}-${{ steps.get_commit_id.outputs.commit_id }} + + - name: prepare install + if: > + (github.event_name == 'pull_request' && steps.cache-server-pr.outputs.cache-hit != 'true') + run: sudo apt install -y libgeos-dev + + - name: install TDengine + if: > + (github.event_name == 'pull_request' && steps.cache-server-pr.outputs.cache-hit != 'true') + run: | + cd TDengine + mkdir debug + cd debug + cmake .. -DBUILD_TEST=off -DBUILD_HTTP=false -DVERNUMBER=3.9.9.9 + make -j 4 + + - name: package + if: > + (github.event_name == 'pull_request' && steps.cache-server-pr.outputs.cache-hit != 'true') + run: | + mkdir -p ./release + cp ./TDengine/debug/build/bin/taos ./release/ + cp ./TDengine/debug/build/bin/taosd ./release/ + cp ./TDengine/tools/taosadapter/taosadapter ./release/ + cp ./TDengine/debug/build/lib/libtaos.so.3.9.9.9 ./release/ + cp ./TDengine/debug/build/lib/librocksdb.so.8.1.1 ./release/ ||: + cp ./TDengine/include/client/taos.h ./release/ + cat >./release/install.sh<start.sh<