@@ -22,17 +22,27 @@ jobs:
2222 outputs :
2323 commit_id : ${{ steps.get_commit_id.outputs.commit_id }}
2424 steps :
25+ # ----------------------------------------------
26+ # Determine TDengine branch dynamically
27+ # ----------------------------------------------
28+ - name : Determine TDengine branch
29+ uses : haya14busa/action-cond@v1
30+ id : determine-branch
31+ with :
32+ cond : ${{ github.base_ref == 'main' }}
33+ if_true : ' 3.3.6'
34+ if_false : ' 3.0'
35+
36+ # ----------------------------------------------
37+ # Checkout TDengine repository
38+ # ----------------------------------------------
2539 - name : Checkout TDengine
26- if : |
27- github.event_name == 'pull_request'
28- || github.event_name == 'push'
29- || github.event_name == 'schedule'
3040 uses : actions/checkout@v4
3141 with :
32- repository : ' taosdata/TDengine'
33- path : ' TDengine'
34- ref : ${{ github.event.pull_request.base.ref }}
35-
42+ repository : " taosdata/TDengine"
43+ path : " TDengine"
44+ ref : ${{ steps.determine-branch.outputs.value }}
45+
3646 - name : get_commit_id
3747 id : get_commit_id
3848 run : |
@@ -274,7 +284,6 @@ jobs:
274284
275285 - name : prepare install
276286 run : |
277- brew install geos
278287 sudo mkdir -p /usr/local/lib
279288 sudo mkdir -p /usr/local/include
280289
@@ -353,6 +362,8 @@ jobs:
353362 # run test suite
354363 # ----------------------------------------------
355364 - name : Test
365+ env :
366+ DYLD_LIBRARY_PATH : /usr/local/lib:$DYLD_LIBRARY_PATH
356367 run : |
357368 source $VENV
358369 export TDENGINE_URL=localhost:6041
0 commit comments