clickhouse client move support #1385
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: Windows | |
| on: | |
| schedule: | |
| - cron: '0 0 * * 1' | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ master ] | |
| release: | |
| types: | |
| - published | |
| - prereleased | |
| env: | |
| BUILD_TYPE: Release | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 100 | |
| fetch-tags: true | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCH_MAP_BOOL_TO_UINT8=OFF -DBUILD_TESTS=ON | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: Enable WSL and Install Dependencies | |
| uses: Vampire/setup-wsl@v5 | |
| with: | |
| distribution: Ubuntu-24.04 | |
| additional-packages: | |
| podman | |
| podman-compose | |
| - name: Start ClickHouse Server | |
| shell: wsl-bash {0} | |
| run: | | |
| echo "Starting ClickHouse container" | |
| cd $(wslpath -u "${{ github.workspace }}/ci/") | |
| podman-compose up -d | |
| echo "Waiting for ClickHouse to start..." | |
| timeout 60s bash -c \ | |
| 'until curl -s -o /dev/null -w "%{http_code}" http://localhost:8123 | grep -q "200"; do sleep 2; done' | |
| echo "Checking ClickHouse version" | |
| curl -s http://localhost:8123/?query=SELECT%20VERSION%28%29 | |
| - name: Ping ClickHouse Server from Windows | |
| run: | | |
| curl.exe http://localhost:8123/?query=SELECT%20VERSION%28%29 | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build/ut | |
| run: Release\clickhouse-cpp-ut.exe "${{env.GTEST_FILTER}}" |