cc core: reorganize http2 functional tests #4218
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: Alpine | |
| 'on': | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| - feature/** | |
| env: | |
| UBSAN_OPTIONS: print_stacktrace=1 | |
| ASAN_OPTIONS: detect_odr_violation=2 | |
| CXX: clang++-22 | |
| CC: clang-22 | |
| CCACHE_DIR: /home/runner/.cache/ccache | |
| CCACHE_NOHASHDIR: true | |
| CPM_SOURCE_CACHE: /home/runner/.cache/CPM | |
| jobs: | |
| posix: | |
| strategy: | |
| fail-fast: false | |
| name: alpine (build-only) | |
| runs-on: ubuntu-24.04 | |
| env: | |
| CMAKE_PROGRAM_PATH: /usr/lib/llvm22/bin | |
| CMAKE_FLAGS: >- | |
| -DCMAKE_BUILD_TYPE=Debug | |
| -DCMAKE_CXX_STANDARD=20 | |
| -DUSERVER_USE_LD=lld | |
| -DUSERVER_NO_WERROR=OFF | |
| -DUSERVER_BUILD_ALL_COMPONENTS=1 | |
| -DUSERVER_BUILD_SAMPLES=1 | |
| -DUSERVER_BUILD_TESTS=1 | |
| -DUSERVER_FEATURE_JEMALLOC=OFF | |
| -DUSERVER_FEATURE_KAFKA=OFF | |
| -DUSERVER_FEATURE_CLICKHOUSE=OFF | |
| -DUSERVER_FEATURE_STACKTRACE=OFF | |
| -DUSERVER_FEATURE_PATCH_LIBPQ=OFF | |
| -DUSERVER_FEATURE_YDB=OFF | |
| -DUSERVER_DISABLE_RSEQ_ACCELERATION=YES | |
| -DUSERVER_FORCE_DOWNLOAD_ABSEIL=1 | |
| -DUSERVER_FORCE_DOWNLOAD_PROTOBUF=1 | |
| -DUSERVER_FORCE_DOWNLOAD_GRPC=1 | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Restore cached directories | |
| id: restore-cache | |
| uses: actions/cache/restore@v6 | |
| with: | |
| path: | | |
| ${{env.CCACHE_DIR}} | |
| ${{env.CPM_SOURCE_CACHE}} | |
| key: 'alpine-cache-dir ${{github.ref}} run-${{github.run_number}}' | |
| restore-keys: | | |
| alpine-cache-dir ${{github.ref}} | |
| alpine-cache-dir | |
| - name: Setup host cache dirs | |
| run: | | |
| mkdir -p ${{env.CCACHE_DIR}} | |
| mkdir -p ${{env.CPM_SOURCE_CACHE}} | |
| - name: Setup latest Alpine Linux | |
| uses: jirutka/setup-alpine@v1 | |
| with: | |
| volumes: | | |
| ${{env.CCACHE_DIR}}:${{env.CCACHE_DIR}} | |
| ${{env.CPM_SOURCE_CACHE}}:${{env.CPM_SOURCE_CACHE}} | |
| - name: Install dependencies | |
| shell: alpine.sh --root {0} | |
| run: | | |
| pwd | |
| cat /etc/alpine-release | |
| apk add gcc lld22 compiler-rt ccache git gdb | |
| apk add $(cat scripts/docs/en/deps/alpine.md) | |
| # Tell clang22 to use lld for linking | |
| echo '-fuse-ld=lld' >> /etc/clang22/$(clang++-22 -dumpmachine).cfg | |
| - name: Install test dependencies | |
| shell: alpine.sh --root {0} | |
| run: | | |
| apk add postgresql16 \ | |
| redis \ | |
| rabbitmq-server \ | |
| - name: Setup caches | |
| shell: alpine.sh --root {0} | |
| run: | | |
| echo "Cached CPM packages:" | |
| du -h -d 1 ${{env.CPM_SOURCE_CACHE}} | |
| for f in $(find ${{env.CPM_SOURCE_CACHE}} -name "cmake.lock"); | |
| do | |
| repo=$(ls -d $(dirname $f)/*/); | |
| echo "Repository: $repo"; | |
| git config --global --add safe.directory $repo; | |
| done | |
| ccache -M 2.0GB | |
| ccache -s -v | |
| - name: Run cmake | |
| shell: alpine.sh --root {0} | |
| run: | | |
| pwd | |
| cmake -S . -B build_debug $CMAKE_FLAGS | |
| - name: Reconfigure cmake | |
| shell: alpine.sh --root {0} | |
| run: | | |
| pwd | |
| cmake -S . -B build_debug $CMAKE_FLAGS | |
| - name: Compile | |
| shell: alpine.sh --root {0} | |
| run: | | |
| cmake --build build_debug -j$(nproc) | |
| - name: Save cached directories | |
| uses: actions/cache/save@v6 | |
| with: | |
| path: | | |
| ${{env.CCACHE_DIR}} | |
| ${{env.CPM_SOURCE_CACHE}} | |
| key: ${{ steps.restore-cache.outputs.cache-primary-key }} | |
| - name: Show cache stats | |
| shell: alpine.sh {0} | |
| run: |- | |
| du -h -d 1 ${{env.CCACHE_DIR}} | |
| du -h -d 1 ${{env.CPM_SOURCE_CACHE}} | |
| ccache -s -v |