Skip to content

Commit

Permalink
Merge pull request #160 from Teingi/master
Browse files Browse the repository at this point in the history
support deb package
  • Loading branch information
Teingi authored Apr 18, 2024
2 parents 97504df + bb2b71a commit 5c1e35b
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build_rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up RPM build env
run: |
sudo apt-get update && sudo apt-get install -y rpm
sudo apt-get update && sudo apt-get install -y rpm alien fakeroot
- name: Build package
run: |
Expand All @@ -38,9 +38,17 @@ jobs:
cat ./rpm/oceanbase-diagnostic-tool.spec
rpmbuild -bb ./rpm/oceanbase-diagnostic-tool.spec
- name: 'Upload Artifact'
- 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
path: /home/runner/rpmbuild/RPMS/x86_64/oceanbase-diagnostic-tool-*.rpm
retention-days: 3
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

0 comments on commit 5c1e35b

Please sign in to comment.