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