Use the region passed to get_presigned_url #20
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: CI (RDMA) | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-miniocpp: | |
| name: Build libminiocpp.so (${{ matrix.config.arch }}) + RDMA wrapper tests | |
| runs-on: ${{ matrix.config.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { os: ubuntu-latest, arch: "amd64" } | |
| - { os: ubuntu-24.04-arm, arch: "arm64" } | |
| steps: | |
| - name: Checkout minio-py | |
| uses: actions/checkout@v4 | |
| with: | |
| path: "minio-py" | |
| - name: Checkout minio-cpp | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: minio/minio-cpp | |
| 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 | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get -qy update | |
| sudo apt-get -qy install libibverbs-dev librdmacm-dev libnuma-dev | |
| - name: Build libminiocpp.so with RDMA | |
| shell: bash | |
| run: | | |
| ./vcpkg/bootstrap-vcpkg.sh | |
| cd minio-cpp | |
| ../vcpkg/vcpkg install | |
| cmake . -B ./build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DBUILD_SHARED_LIBS=ON \ | |
| -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake \ | |
| -DMINIO_CPP_ENABLE_RDMA:BOOL=ON | |
| cmake --build ./build --config Release -j 4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install minio-py | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ./minio-py | |
| pip install pytest mock | |
| - name: Run RDMA wrapper unit tests | |
| working-directory: minio-py | |
| env: | |
| MINIOCPP_LIB: ${{ github.workspace }}/minio-cpp/build/libminiocpp.so | |
| run: | | |
| pytest tests/unit/rdma_test.py -v |