fix(#30): preserve Go's signal handlers across chdb_connect; add race detector to CI #70
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: chDB-go | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/.md' | |
| push: | |
| branches: [ "main" ] | |
| paths-ignore: | |
| - '**/.md' | |
| jobs: | |
| build_linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Fetch library | |
| run: | | |
| make install | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.21" | |
| - name: Build | |
| run: | | |
| go mod tidy | |
| make build | |
| - name: Test | |
| run: make test | |
| - name: Test with race detector | |
| run: go test -race -timeout=180s ./... | |
| - name: Test main | |
| run: ./chdb-go "SELECT 12345" | |
| build_mac: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Fetch library | |
| run: | | |
| make install | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.21" | |
| - name: Build | |
| run: | | |
| go mod tidy | |
| make build | |
| - name: Test | |
| run: make test | |
| - name: Test with race detector | |
| run: go test -race -timeout=180s ./... | |
| - name: Test main | |
| run: ./chdb-go "SELECT 12345" | |