Skip to content

Commit

Permalink
fix: add mac build go
Browse files Browse the repository at this point in the history
  • Loading branch information
DuanKuanJun committed Dec 21, 2024
1 parent 521d1cb commit bcabf49
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,34 @@ jobs:
(github.event_name == 'push' && steps.cache-server-push.outputs.cache-hit != 'true')
run: brew install argp-standalone pkgconfig geos

- name: Set up homebrew
if: |
github.event_name == 'pull_request'
|| github.event_name == 'push'
|| github.event_name == 'schedule'
run: |
brew update
brew install --overwrite argp-standalone pkg-config
brew info argp-standalone
- name: Set up Go
if: |
github.event_name == 'pull_request'
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Set up Rust
if: |
github.event_name == 'pull_request'
|| github.event_name == 'push'
|| github.event_name == 'schedule'
uses: actions-rs/[email protected]
with:
toolchain: stable

- name: install TDengine
if: >
(github.event_name == 'workflow_dispatch' && steps.cache-server-manually.outputs.cache-hit != 'true') ||
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/test-ubuntu-2004.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ jobs:

- name: Build TDengine 3.0
run: |
echo ${{ secrets.CLOUD_TOKEN }}
echo $CLOUD_DSN
export CLOUD_DSN=${{ secrets.CLOUD_TOKEN }}
echo "dsn=$CLOUD_DSN"
cd TDengine_v3
mkdir build
Expand Down Expand Up @@ -116,7 +116,12 @@ jobs:
- name: Test 3.0
run: |
export LD_LIBRARY_PATH=$PWD/TDengine_v3/build/build/lib
echo $CLOUD_DSN
export CLOUD_DSN=${{ secrets.CLOUD_TOKEN }}
echo "dsn=$CLOUD_DSN"
pytest taos-ws-py/tests/test_cloud.py
echo "---------- test end for test_cloud.py -------------"
#source $VENV
export TDENGINE_URL=localhost:6041
curl -L -H "Authorization: Basic cm9vdDp0YW9zZGF0YQ==" -d "show databases" localhost:6041/rest/sql
Expand Down

0 comments on commit bcabf49

Please sign in to comment.