-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (39 loc) · 1.66 KB
/
build.yml
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
name: build CI
on:
push:
branches: [ "8.0" ]
pull_request:
branches: [ "8.0" ]
jobs:
build:
runs-on: ubuntu-latest
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
strategy:
matrix:
include:
- image: centos:7
run: |
# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*.repo
# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*.repo
sed -i 's,^mirrorlist=,#,; s,^#baseurl=http://mirror\.centos\.org/centos/$releasever,baseurl=https://vault.centos.org/7.9.2009,' /etc/yum.repos.d/*.repo
yum install -y kernel-devel kernel gcc make elfutils-libelf-devel
container:
image: ${{ matrix.image }}
options: --security-opt seccomp=unconfined
steps:
- run: cat /etc/os-release
- name: prepare
run: ${{ matrix.run }}
- uses: actions/checkout@v3
- name: build test
run: |
yum install -y git ncurses-devel bison cmake3 libaio-devel openssl openssl-devel cyrus-sasl-devel openldap-devel gtest libtirpc-devel
yum install -y centos-release-scl
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-binutils
source /opt/rh/devtoolset-10/enable
gcc --version
curl -O --output-dir depend https://archives.boost.io/release/1.70.0/source/boost_1_70_0.tar.gz
tar xvzf depend/boost_1_70_0.tar.gz
./build.sh -b depend/boost_1_70_0 -D 1