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 7
7
- ' **/.md'
8
8
9
9
jobs :
10
- build :
10
+ build_linux :
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- 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
14
32
- name : Fetch library
15
33
run : |
16
34
make install
Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
-
9
- build :
8
+ build_linux :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
11
- uses : actions/checkout@v3
22
21
go mod tidy
23
22
make build
24
23
- name : Test
25
- run : ./chdb-go "SELECT 12345"
24
+ run : LD_LIBRARY_PATH=. ./chdb-go "SELECT 12345"
26
25
- name : Get Version
27
26
run : |
28
27
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
38
37
release_name : chdbgo_${{ env.VERSION }}
39
38
draft : false
40
39
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/upload-multiple-releases@1.0.7
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
12
12
sudo cp -a libchdb.so /usr/local/lib
13
13
# if on Linux run `sudo ldconfig` to update the cache
14
14
# if on macOS run `sudo update_dyld_shared_cache` to update the cache
15
- if [ " $$ OSTYPE" == " linux-gnu" ]; then sudo ldconfig; fi
16
-
17
15
test :
18
16
CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...
19
17
You can’t perform that action at this time.
0 commit comments