Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
amyangfei committed Aug 30, 2024
1 parent 783c52c commit fa6fbac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
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
Expand All @@ -31,7 +32,7 @@ jobs:
- name: prepare
run: ${{ matrix.run }}
- uses: actions/checkout@v3
- name: build test
- 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
yum install -y centos-release-scl
Expand All @@ -42,6 +43,7 @@ jobs:
yum install -y devtoolset-10-gcc devtoolset-10-gcc-c++ devtoolset-10-binutils
source /opt/rh/devtoolset-10/enable
gcc --version
curl -o depend/boost_1_70_0.tar.gz https://archives.boost.io/release/1.70.0/source/boost_1_70_0.tar.gz
tar xzf depend/boost_1_70_0.tar.gz -C depend
./build.sh -b ${{ github.workspace }}/depend/boost_1_70_0 -D 1
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
./build.sh -b /txsql_extra/boost_1_70_0 -D 1

0 comments on commit fa6fbac

Please sign in to comment.