-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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 | ||
name: prepare | ||
run: | | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/*.repo | ||
sed -i 's|baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /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: prepare necessary dependences | ||
run: | | ||
yum install -y git ncurses-devel bison libaio-devel openssl openssl-devel cyrus-sasl-devel openldap-devel libtirpc-devel which expect | ||
yum install -y centos-release-scl | ||
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-SCLo*.repo | ||
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo | ||
sed -i 's|# baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-SCLo-scl.repo | ||
yum install -y epel-release && yum install -y cmake3 gtest | ||
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-binutils | ||
source /opt/rh/devtoolset-10/enable | ||
gcc --version | ||
mkdir /txsql_extra && curl -o /txsql_extra/boost_1_70_0.tar.gz https://archives.boost.io/release/1.70.0/source/boost_1_70_0.tar.gz | ||
tar xzf /txsql_extra/boost_1_70_0.tar.gz -C /txsql_extra | ||
- name: build test | ||
run: | | ||
./build.sh -b /txsql_extra/boost_1_70_0 -D 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters