suse: add SLESPolicy and fix OpenSuSEPolicy detection #363
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build RPM | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: rockylinux:8 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install RPM tools | |
| run: | | |
| dnf install -y systemd systemd-devel rpm-build rpmdevtools gettext python3-devel python3-setuptools python3-systemd | |
| dnf install -y 'dnf-command(builddep)' | |
| - name: Prepare build environment | |
| run: | | |
| mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | |
| cp sos.spec ~/rpmbuild/SPECS/ | |
| python3 setup.py sdist | |
| cp dist/* ~/rpmbuild/SOURCES/ | |
| - name: Build RPM | |
| run: | | |
| rpmbuild -ba ~/rpmbuild/SPECS/sos.spec |