|
| 1 | +# Copyright 2026-present Alibaba Inc. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | + |
| 15 | +name: Gcc 8 Test |
| 16 | + |
| 17 | +on: |
| 18 | + push: |
| 19 | + branches: |
| 20 | + - '**' |
| 21 | + tags: |
| 22 | + - '**' |
| 23 | + pull_request: |
| 24 | + |
| 25 | +concurrency: |
| 26 | + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} |
| 27 | + cancel-in-progress: true |
| 28 | + |
| 29 | +permissions: |
| 30 | + contents: read |
| 31 | + |
| 32 | +jobs: |
| 33 | + gcc8-test: |
| 34 | + runs-on: ubuntu-22.04 |
| 35 | + container: |
| 36 | + image: ubuntu:20.04 |
| 37 | + options: --privileged |
| 38 | + timeout-minutes: 120 |
| 39 | + strategy: |
| 40 | + fail-fast: false |
| 41 | + steps: |
| 42 | + - name: Install dependencies |
| 43 | + run: | |
| 44 | + apt-get update |
| 45 | + DEBIAN_FRONTEND=noninteractive apt-get install -y gcc-8 g++-8 ninja-build git git-lfs tar curl tzdata zip unzip pkg-config build-essential python3-dev gdb |
| 46 | + curl -L -O https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.tar.gz |
| 47 | + tar -zxvf cmake-3.28.3-linux-x86_64.tar.gz -C /usr/local --strip-components=1 |
| 48 | + rm cmake-3.28.3-linux-x86_64.tar.gz |
| 49 | + - name: Enable core dumps |
| 50 | + run: | |
| 51 | + ulimit -c unlimited |
| 52 | + sysctl -w kernel.core_pattern=core.%e.%p |
| 53 | + - name: Debug core dump settings |
| 54 | + run: | |
| 55 | + ulimit -c |
| 56 | + cat /proc/sys/kernel/core_pattern |
| 57 | + ls -la |
| 58 | + - name: Checkout paimon-cpp |
| 59 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 60 | + with: |
| 61 | + lfs: true |
| 62 | + - name: Build Paimon |
| 63 | + shell: bash |
| 64 | + env: |
| 65 | + CC: gcc-8 |
| 66 | + CXX: g++-8 |
| 67 | + run: ci/scripts/build_paimon.sh $(pwd) |
0 commit comments