build: vendor libs3rdma 0.3.2 #236
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: MinIO C++ Cmake (RDMA) | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "Ubuntu_RDMA_GCC_amd64", | |
| os: ubuntu-latest, | |
| arch: "amd64", | |
| build_type: "Release", | |
| } | |
| - { | |
| name: "Ubuntu_RDMA_GCC_arm64", | |
| os: ubuntu-24.04-arm, | |
| arch: "arm64", | |
| build_type: "Release", | |
| } | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| steps: | |
| - name: Checkout minio-cpp | |
| uses: actions/checkout@v4 | |
| with: | |
| path: "minio-cpp" | |
| - name: Checkout vcpkg | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: microsoft/vcpkg | |
| ref: "2026.07.29" | |
| path: "vcpkg" | |
| # arm64 Linux has no prebuilt vcpkg CMake, so vcpkg falls back to the system | |
| # cmake; the apt version (3.28) is too old for vcpkg's SPDX generation | |
| # (string(JSON ... STRING_ENCODE)). Provide a recent cmake on PATH. | |
| - name: Install recent CMake and Ninja | |
| uses: lukka/get-cmake@fffaaafeea488556c2c12dad60690008bc1caacb # v4.4.2 | |
| # No apt package is installed in this job -- vcpkg brings the dependencies | |
| # and the RDMA headers -- so there is nothing here to refresh an index for. | |
| # It used to run `apt-get update` anyway, which fails the whole job when the | |
| # runner image's third-party lists serve a bad index: a green build lost to | |
| # a chrome-repo hash mismatch. | |
| - name: Show CMake version | |
| run: cmake --version | |
| - name: Configure and Build | |
| shell: bash | |
| run: | | |
| ./vcpkg/bootstrap-vcpkg.sh | |
| cd minio-cpp | |
| ../vcpkg/vcpkg install | |
| cmake . -B ./build \ | |
| -DCMAKE_BUILD_TYPE=${{matrix.config.build_type}} \ | |
| -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \ | |
| -DMINIO_CPP_TEST:BOOL=ON \ | |
| -DMINIO_CPP_ENABLE_RDMA:BOOL=ON | |
| cmake --build ./build --config ${{matrix.config.build_type}} -j 4 |