|
| 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 | +name: Gcc 8 Test |
| 19 | + |
| 20 | +on: |
| 21 | + push: |
| 22 | + branches: |
| 23 | + - '**' |
| 24 | + tags: |
| 25 | + - '**' |
| 26 | + pull_request: |
| 27 | + |
| 28 | +concurrency: |
| 29 | + group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }} |
| 30 | + cancel-in-progress: true |
| 31 | + |
| 32 | +permissions: |
| 33 | + contents: read |
| 34 | + |
| 35 | +jobs: |
| 36 | + gcc8-test: |
| 37 | + runs-on: ubuntu-22.04 |
| 38 | + container: |
| 39 | + image: ubuntu:20.04 |
| 40 | + options: --privileged |
| 41 | + timeout-minutes: 120 |
| 42 | + strategy: |
| 43 | + fail-fast: false |
| 44 | + steps: |
| 45 | + - name: Install dependencies |
| 46 | + run: | |
| 47 | + apt-get update |
| 48 | + 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 sudo |
| 49 | + curl -L -O https://github.com/Kitware/CMake/releases/download/v3.28.3/cmake-3.28.3-linux-x86_64.tar.gz |
| 50 | + tar -zxvf cmake-3.28.3-linux-x86_64.tar.gz -C /usr/local --strip-components=1 |
| 51 | + rm cmake-3.28.3-linux-x86_64.tar.gz |
| 52 | + - name: Enable core dumps |
| 53 | + run: | |
| 54 | + ulimit -c unlimited |
| 55 | + sysctl -w kernel.core_pattern=core.%e.%p |
| 56 | + - name: Debug core dump settings |
| 57 | + run: | |
| 58 | + ulimit -c |
| 59 | + cat /proc/sys/kernel/core_pattern |
| 60 | + ls -la |
| 61 | + - name: Checkout paimon-cpp |
| 62 | + uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| 63 | + with: |
| 64 | + lfs: true |
| 65 | + - name: Setup ccache |
| 66 | + uses: ./.github/actions/setup-ccache |
| 67 | + with: |
| 68 | + cache-key-prefix: ccache-gcc8-test |
| 69 | + - name: Build Paimon |
| 70 | + shell: bash |
| 71 | + env: |
| 72 | + CC: gcc-8 |
| 73 | + CXX: g++-8 |
| 74 | + run: ci/scripts/build_paimon.sh $(pwd) |
| 75 | + - name: Show ccache statistics |
| 76 | + if: always() |
| 77 | + run: ccache -s |
0 commit comments