-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (47 loc) · 1.2 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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: nohup sudo taosd &
- name: start taosadapter
run: nohup sudo taosadapter &
- name: test
run:
go mod tidy && go test -v ./...
- name: Build
run: |
go mod tidy
go build