File tree Expand file tree Collapse file tree 3 files changed +55
-7
lines changed Expand file tree Collapse file tree 3 files changed +55
-7
lines changed Original file line number Diff line number Diff line change 77 - ' **/.md'
88
99jobs :
10- build :
10+ build_linux :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v3
14+ - name : Fetch library
15+ run : |
16+ make install
17+ - name : Set up Go
18+ uses : actions/setup-go@v4
19+ with :
20+ go-version : " 1.21"
21+ - name : Build
22+ run : |
23+ go mod tidy
24+ make build
25+ - name : Test
26+ run : LD_LIBRARY_PATH=./ ./chdb-go "SELECT 12345"
27+
28+ build_mac :
29+ runs-on : macos-12
30+ steps :
31+ - uses : actions/checkout@v3
1432 - name : Fetch library
1533 run : |
1634 make install
Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8-
9- build :
8+ build_linux :
109 runs-on : ubuntu-latest
1110 steps :
1211 - uses : actions/checkout@v3
2221 go mod tidy
2322 make build
2423 - name : Test
25- run : ./chdb-go "SELECT 12345"
24+ run : LD_LIBRARY_PATH=. ./chdb-go "SELECT 12345"
2625 - name : Get Version
2726 run : |
2827 echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
3837 release_name : chdbgo_${{ env.VERSION }}
3938 draft : false
4039 prerelease : false
41- overwrite : true
40+ overwrite : true
41+ build_mac :
42+ runs-on : macos-12
43+ steps :
44+ - uses : actions/checkout@v3
45+ - name : Fetch library
46+ run : |
47+ make install
48+ - name : Set up Go
49+ uses : actions/setup-go@v4
50+ with :
51+ go-version : " 1.21"
52+ - name : Build
53+ run : |
54+ go mod tidy
55+ make build
56+ - name : Test
57+ run : ./chdb-go "SELECT 12345"
58+ - name : Get Version
59+ run : |
60+ echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
61+ - name : Upload release
62+ if : github.event_name != 'pull_request'
63+ uses :
boxpositron/[email protected] 64+ env :
65+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
66+ with :
67+ release_config : |
68+ chdb-go-macos
69+ tag_name : ${{ env.VERSION }}
70+ release_name : chdbgo_${{ env.VERSION }}
71+ draft : false
72+ prerelease : false
73+ overwrite : true
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ install: update_libchdb
1212 sudo cp -a libchdb.so /usr/local/lib
1313 # if on Linux run `sudo ldconfig` to update the cache
1414 # if on macOS run `sudo update_dyld_shared_cache` to update the cache
15- if [ " $$ OSTYPE" == " linux-gnu" ]; then sudo ldconfig; fi
16-
1715test :
1816 CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...
1917
You can’t perform that action at this time.
0 commit comments