Skip to content

Merge pull request #154 from Teingi/master #3

Merge pull request #154 from Teingi/master

Merge pull request #154 from Teingi/master #3

Workflow file for this run

name: build rpm
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build-and-package-x86_64:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip setuptools wheel
pip3 install -r requirements3.txt
- name: Set up RPM build env
run: |
sudo apt-get update && sudo apt-get install -y rpm
- name: Build package
run: |
pwd
ls -lh
export RELEASE=`date +%Y%m%d%H%M`
cat ./rpm/oceanbase-diagnostic-tool.spec
rpmbuild -bb ./rpm/oceanbase-diagnostic-tool.spec
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: obdiag
path: /home/runner/rpmbuild/RPMS/x86_64/oceanbase-diagnostic-tool-*.rpm
retention-days: 3