Skip to content

Commit

Permalink
add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Teingi committed Apr 17, 2024
1 parent ec33bd4 commit 57103e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build_rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- master

jobs:
build-and-package:
build-and-package-x86_64:
runs-on: ubuntu-latest

steps:
Expand All @@ -21,19 +21,20 @@ jobs:
with:
python-version: '3.8'

- name: Set up RPM build env
run: |
sudo apt-get install -y rpm
- 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
Expand Down

0 comments on commit 57103e4

Please sign in to comment.