Skip to content

Replaced Cout, Cerr, Clog #154

Replaced Cout, Cerr, Clog

Replaced Cout, Cerr, Clog #154

Workflow file for this run

name: PR-check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
main:
name: PR check for YDB C++ SDK
runs-on: ubuntu-22.04
services:
ydb:
image: ydbplatform/local-ydb:latest
ports:
- 2135:2135
- 2136:2136
- 8765:8765
volumes:
- /tmp/ydb_certs:/ydb_certs
env:
YDB_LOCAL_SURVIVE_RESTART: true
YDB_USE_IN_MEMORY_PDISKS: true
YDB_TABLE_ENABLE_PREPARED_DDL: true
options: '-h localhost'
steps:
- name: Checkout PR
uses: actions/checkout@v3
if: github.event.pull_request.head.sha != ''
with:
submodules: true
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout
uses: actions/checkout@v3
if: github.event.pull_request.head.sha == ''
with:
submodules: true
- name: Install dependencies
uses: ./.github/actions/prepare_vm
- name: Prepare ccache timestamp
id: ccache_cache_timestamp
shell: cmake -P {0}
run: |
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
message("::set-output name=timestamp::${current_date}")
- name: Restore cache files
uses: actions/cache/restore@v4
with:
path: ~/.ccache
key: ubuntu-22.04-ccache-${{steps.ccache_cache_timestamp.outputs.timestamp}}
restore-keys: |
ubuntu-22.04-ccache-
- name: Build
uses: ./.github/actions/build
- name: Launch basic example
shell: bash
run: |
cd ../build
examples/basic_example/basic_example -e localhost:2136 -d /local -p /local/basic
examples/bulk_upsert_simple/bulk_upsert_simple -e localhost:2136 -d /local -p /local/bulk
examples/pagination/pagination -e localhost:2136 -d /local -p /local/pagination
examples/ttl/ttl -e localhost:2136 -d /local -p /local/ttl