Skip to content

Commit d00ae3b

Browse files
committed
Fix pipeline
1 parent 9845a5c commit d00ae3b

File tree

3 files changed

+55
-7
lines changed

3 files changed

+55
-7
lines changed

.github/workflows/chdb.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,28 @@ on:
77
- '**/.md'
88

99
jobs:
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

.github/workflows/release.yml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
9-
build:
8+
build_linux:
109
runs-on: ubuntu-latest
1110
steps:
1211
- uses: actions/checkout@v3
@@ -22,7 +21,7 @@ jobs:
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
@@ -38,4 +37,37 @@ jobs:
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/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

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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-
1715
test:
1816
CGO_ENABLED=1 go test -v -coverprofile=coverage.out ./...
1917

0 commit comments

Comments
 (0)