Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

obdiag添加参数收集和对比功能 #307

Merged
merged 4 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/build_rpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: build rpm
Teingi marked this conversation as resolved.
Show resolved Hide resolved

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 alien fakeroot

- 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: Convert RPM to DEB
run: |
mkdir -p /home/runner/artifacts
fakeroot alien --scripts --to-deb /home/runner/rpmbuild/RPMS/x86_64/oceanbase-diagnostic-tool-*.rpm

- name: 'Upload Artifacts'
uses: actions/upload-artifact@v3
with:
name: obdiag-packages
path: |
/home/runner/rpmbuild/RPMS/x86_64/oceanbase-diagnostic-tool-*.rpm
/home/runner/work/oceanbase-diagnostic-tool/oceanbase-diagnostic-tool/oceanbase-diagnostic-tool_*.deb
retention-days: 3
debug: true
Loading
Loading