Skip to content

Commit

Permalink
Merge pull request #296 from wayyoungboy/2.3.0-build_test
Browse files Browse the repository at this point in the history
2.3.0 build package
  • Loading branch information
Teingi authored Jul 3, 2024
2 parents d473583 + 987882d commit 4b21ad6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,23 @@ jobs:
name: Run on CentOS 7
runs-on: ubuntu-latest
container:
image: "openanolis/anolisos:latest"
image: "centos:7"

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

- name: Install dependencies
run: |
yum install -y python3.8
rm -rf /etc/yum.repos.d/*
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
yum install -y wget
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-check-certificate
sh Miniconda3-latest-Linux-x86_64.sh -p /opt/miniconda3 -b
export PATH=/opt/miniconda3/bin:$PATH
conda init
conda create --name obdiag python=3.8 -y
source activate obdiag
ldd --version
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -r requirements3.txt
Expand All @@ -30,13 +38,13 @@ jobs:
- name: Build package
run: |
export PATH=/opt/miniconda3/bin:$PATH
source activate obdiag
pwd
ls -lh
export RELEASE=`date +%Y%m%d%H%M`
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
python3 -m pip install --upgrade pip setuptools wheel
Expand Down

0 comments on commit 4b21ad6

Please sign in to comment.