Skip to content

add database option default cfg #498

add database option default cfg

add database option default cfg #498

Workflow file for this run

name: Go
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.18' ]
name: Go ${{ matrix.go }}
steps:
- name: Build tools
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential cmake libgeos-dev
- name: checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: checkout TDengine
uses: actions/checkout@v3
with:
repository: 'taosdata/TDengine'
path: 'TDengine'
ref: 'main'
- name: install TDengine
run: |
cd TDengine
mkdir debug
cd debug
cmake .. -DBUILD_HTTP=false -DBUILD_JDBC=false -DBUILD_TOOLS=false -DBUILD_TEST=off
make -j 4
sudo make install
which taosd
which taosadapter
- name: start taosd
run: |
cp /etc/taos/taos.cfg ./
sudo echo "supportVnodes 256" >> taos.cfg
nohup sudo taosd -c taos.cfg &
- name: start taosadapter
run: nohup sudo taosadapter &
- name: test
run:
go mod tidy && go test -v ./...
- name: Build
run: |
go mod tidy
go build