build(deps): bump flat and mocha in /tools/taos-tools/deps/avro/lang/js #577
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TDengine Build | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
- '3.0' | |
- '3.1' | |
paths-ignore: | |
- 'docs/**' | |
- 'packaging/**' | |
- 'tests/**' | |
- '*.md' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- ubuntu-24.04 | |
- macos-13 | |
- macos-14 | |
- macos-15 | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.18 | |
- name: Install dependencies on Linux | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update -y | |
sudo apt install -y build-essential cmake \ | |
libgeos-dev libjansson-dev libsnappy-dev liblzma-dev libz-dev \ | |
zlib1g-dev pkg-config libssl-dev gawk | |
- name: Install dependencies on macOS | |
if: runner.os == 'macOS' | |
run: | | |
brew update | |
brew install argp-standalone gflags pkg-config snappy zlib geos jansson gawk openssl | |
- name: Build and install TDengine | |
run: | | |
mkdir debug && cd debug | |
cmake .. -DBUILD_TOOLS=true \ | |
-DBUILD_KEEPER=true \ | |
-DBUILD_HTTP=false \ | |
-DBUILD_TEST=true \ | |
-DBUILD_DEPENDENCY_TESTS=false | |
make -j 4 | |
sudo make install | |
which taosd | |
which taosadapter | |
which taoskeeper | |
- 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: Run tests with taosBenchmark | |
run: | | |
taosBenchmark -t 10 -n 10 -y | |
taos -s "select count(*) from test.meters" | |
- name: Clean up | |
if: always() | |
run: | | |
if pgrep taosd; then sudo pkill taosd; fi | |
if pgrep taosadapter; then sudo pkill taosadapter; fi |