|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +# S3-backed tests against MinIO (Linux and macOS only). |
| 19 | +name: S3 Tests |
| 20 | + |
| 21 | +on: |
| 22 | + push: |
| 23 | + branches: |
| 24 | + - '**' |
| 25 | + - '!dependabot/**' |
| 26 | + tags: |
| 27 | + - '**' |
| 28 | + pull_request: |
| 29 | + |
| 30 | +concurrency: |
| 31 | + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} |
| 32 | + cancel-in-progress: true |
| 33 | + |
| 34 | +permissions: |
| 35 | + contents: read |
| 36 | + |
| 37 | +env: |
| 38 | + ICEBERG_HOME: /tmp/iceberg |
| 39 | + |
| 40 | +jobs: |
| 41 | + s3-minio: |
| 42 | + name: S3 (${{ matrix.title }}) |
| 43 | + runs-on: ${{ matrix.runs-on }} |
| 44 | + timeout-minutes: 35 |
| 45 | + strategy: |
| 46 | + fail-fast: false |
| 47 | + matrix: |
| 48 | + include: |
| 49 | + - title: AMD64 Ubuntu 24.04 |
| 50 | + runs-on: ubuntu-24.04 |
| 51 | + CC: gcc-14 |
| 52 | + CXX: g++-14 |
| 53 | + - title: AArch64 macOS 26 |
| 54 | + runs-on: macos-26 |
| 55 | + env: |
| 56 | + ICEBERG_TEST_S3_URI: s3://iceberg-test |
| 57 | + AWS_ACCESS_KEY_ID: minio |
| 58 | + AWS_SECRET_ACCESS_KEY: minio123 |
| 59 | + AWS_DEFAULT_REGION: us-east-1 |
| 60 | + AWS_ENDPOINT_URL: http://127.0.0.1:9000 |
| 61 | + AWS_EC2_METADATA_DISABLED: "TRUE" |
| 62 | + steps: |
| 63 | + - name: Checkout iceberg-cpp |
| 64 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 65 | + with: |
| 66 | + persist-credentials: false |
| 67 | + - name: Install dependencies on Ubuntu |
| 68 | + if: ${{ startsWith(matrix.runs-on, 'ubuntu') }} |
| 69 | + shell: bash |
| 70 | + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev |
| 71 | + - name: Set Ubuntu Compilers |
| 72 | + if: ${{ startsWith(matrix.runs-on, 'ubuntu') }} |
| 73 | + run: | |
| 74 | + echo "CC=${{ matrix.CC }}" >> $GITHUB_ENV |
| 75 | + echo "CXX=${{ matrix.CXX }}" >> $GITHUB_ENV |
| 76 | + - name: Start MinIO |
| 77 | + shell: bash |
| 78 | + run: bash ci/scripts/start_minio.sh |
| 79 | + - name: Build and test Iceberg with S3 |
| 80 | + shell: bash |
| 81 | + run: ci/scripts/build_iceberg.sh "$(pwd)" OFF OFF ON |
0 commit comments