Skip to content

Commit

Permalink
Merge branch 'oceanbase:master' into 2.3.0_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi authored Jul 2, 2024
2 parents 68bd03f + 1681921 commit 11e34cd
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ jobs:
name: Run on CentOS 7
runs-on: ubuntu-latest
container:
image: "centos:7"
image: "openanolis/anolisos:latest"

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
yum -y install centos-release-scl-rh centos-release-scl
yum install rh-python38 rh-python38-python-devel -y
echo "source /opt/rh/rh-python38/enable" >/etc/profile.d/python38.sh
echo "export X_SCLS=\"rh-python38\"" >>/etc/profile.d/python38.sh
source /etc/profile.d/python38.sh
yum install -y python3.8
ldd --version
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -r requirements3.txt
Expand All @@ -37,16 +33,13 @@ jobs:
pwd
ls -lh
export RELEASE=`date +%Y%m%d%H%M`
sed -i 's/pip install -r requirements3.txt/source \/etc\/profile.d\/python38.sh\n\
curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py\n\
sed -i 's/pip install -r requirements3.txt/curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py\n\
python3 get-pip.py\n\
pip3 uninstall urllib3\n\
pip3 install urllib3==1.26.6\n\
pip3 install -r requirements3.txt/' ./rpm/oceanbase-diagnostic-tool.spec
cat ./rpm/oceanbase-diagnostic-tool.spec
source /etc/profile.d/python38.sh
python3 -m pip install --upgrade pip setuptools wheel
cat /etc/profile.d/python38.sh
python3 --version
rpmbuild -bb ./rpm/oceanbase-diagnostic-tool.spec
Expand Down

0 comments on commit 11e34cd

Please sign in to comment.