|
| 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 | +# SigV4 build + unit tests (Linux only; aws-cpp-sdk-core via vcpkg). |
| 19 | +name: SigV4 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 | + sigv4: |
| 42 | + name: SigV4 (AMD64 Ubuntu 24.04) |
| 43 | + runs-on: ubuntu-24.04 |
| 44 | + timeout-minutes: 35 |
| 45 | + env: |
| 46 | + CC: gcc-14 |
| 47 | + CXX: g++-14 |
| 48 | + AWS_EC2_METADATA_DISABLED: "TRUE" |
| 49 | + steps: |
| 50 | + - name: Checkout iceberg-cpp |
| 51 | + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 52 | + with: |
| 53 | + persist-credentials: false |
| 54 | + - name: Install dependencies |
| 55 | + shell: bash |
| 56 | + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev |
| 57 | + - name: Cache vcpkg packages |
| 58 | + uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 |
| 59 | + id: vcpkg-cache |
| 60 | + with: |
| 61 | + path: /usr/local/share/vcpkg/installed |
| 62 | + key: vcpkg-x64-linux-aws-sdk-cpp-core-${{ hashFiles('.github/workflows/sigv4_test.yml') }} |
| 63 | + - name: Install AWS SDK via vcpkg |
| 64 | + if: steps.vcpkg-cache.outputs.cache-hit != 'true' |
| 65 | + shell: bash |
| 66 | + run: vcpkg install aws-sdk-cpp[core]:x64-linux |
| 67 | + - name: Build and test Iceberg with SigV4 |
| 68 | + shell: bash |
| 69 | + env: |
| 70 | + CMAKE_TOOLCHAIN_FILE: /usr/local/share/vcpkg/scripts/buildsystems/vcpkg.cmake |
| 71 | + run: ci/scripts/build_iceberg.sh "$(pwd)" OFF OFF OFF ON |
0 commit comments