-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from taosdata/3.0
merge 3.0 to main
- Loading branch information
Showing
42 changed files
with
6,076 additions
and
1,204 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ on: | |
required: true | ||
type: string | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
jobs: | ||
build: | ||
|
@@ -44,8 +42,6 @@ jobs: | |
cd TDengine | ||
echo "commit_id=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Cache server by pr | ||
if: github.event_name == 'pull_request' | ||
|
@@ -77,7 +73,7 @@ jobs: | |
cd TDengine | ||
mkdir debug | ||
cd debug | ||
cmake .. -DBUILD_TEST=off -DBUILD_HTTP=false -DVERNUMBER=3.9.9.9 -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache | ||
cmake .. -DBUILD_TEST=off -DBUILD_HTTP=false -DVERNUMBER=3.9.9.9 | ||
make -j 4 | ||
- name: package | ||
|
@@ -114,7 +110,7 @@ jobs: | |
needs: build | ||
strategy: | ||
matrix: | ||
go: [ '1.14', '1.19' ] | ||
go: [ '1.14', 'stable' ] | ||
name: Go ${{ matrix.go }} | ||
steps: | ||
- name: get cache server by pr | ||
|
@@ -137,11 +133,6 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-build-${{ inputs.tbBranch }}- | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'driver-go' | ||
|
||
- name: prepare install | ||
run: sudo apt install -y libgeos-dev | ||
|
||
|
@@ -150,6 +141,9 @@ jobs: | |
tar -zxvf server.tar.gz | ||
cd release && sudo sh install.sh | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: shell | ||
run: | | ||
cat >start.sh<<EOF | ||
|
@@ -166,7 +160,15 @@ jobs: | |
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
cache-dependency-path: driver-go/go.sum | ||
cache-dependency-path: go.sum | ||
|
||
- name: Test | ||
run: cd ./driver-go && go test -v ./... | ||
run: sudo go test -v --count=1 -coverprofile=coverage.txt -covermode=atomic ./... | ||
|
||
- name: Upload coverage to Codecov | ||
if: ${{ matrix.go }} == 'stable' | ||
uses: codecov/codecov-action@v4-beta | ||
with: | ||
files: ./coverage.txt | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ on: | |
- 'main' | ||
- '3.0' | ||
|
||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
jobs: | ||
build: | ||
|
@@ -29,8 +27,6 @@ jobs: | |
cd TDengine | ||
echo "commit_id=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: Cache server | ||
id: cache-server | ||
|
@@ -43,16 +39,14 @@ jobs: | |
if: steps.cache-server.outputs.cache-hit != 'true' | ||
run: sudo apt install -y libgeos-dev | ||
|
||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: install TDengine | ||
if: steps.cache-server.outputs.cache-hit != 'true' | ||
run: | | ||
cd TDengine | ||
mkdir debug | ||
cd debug | ||
cmake .. -DBUILD_JDBC=false -DBUILD_TEST=off -DBUILD_HTTP=false -DVERNUMBER=3.9.9.9 -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache | ||
cmake .. -DBUILD_JDBC=false -DBUILD_TEST=off -DBUILD_HTTP=false -DVERNUMBER=3.9.9.9 | ||
make -j 4 | ||
- name: package | ||
|
@@ -87,7 +81,7 @@ jobs: | |
needs: build | ||
strategy: | ||
matrix: | ||
go: [ '1.14', '1.19' ] | ||
go: [ '1.14', 'stable' ] | ||
name: Go ${{ matrix.go }} | ||
steps: | ||
- name: get cache server | ||
|
@@ -99,11 +93,6 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-build-${{ github.ref_name }}- | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
path: 'driver-go' | ||
|
||
- name: prepare install | ||
run: sudo apt install -y libgeos-dev | ||
|
||
|
@@ -112,6 +101,9 @@ jobs: | |
tar -zxvf server.tar.gz | ||
cd release && sudo sh install.sh | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: shell | ||
run: | | ||
cat >start.sh<<EOF | ||
|
@@ -128,7 +120,15 @@ jobs: | |
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
cache-dependency-path: driver-go/go.sum | ||
cache-dependency-path: go.sum | ||
|
||
- name: Test | ||
run: cd ./driver-go && go test -v ./... | ||
run: sudo go test -v --count=1 -coverprofile=coverage.txt -covermode=atomic ./... | ||
|
||
- name: Upload coverage to Codecov | ||
if: ${{ matrix.go }} == 'stable' | ||
uses: codecov/codecov-action@v4-beta | ||
with: | ||
files: ./coverage.txt | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }} |
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
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
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
Oops, something went wrong.