Remove SRPM upload from validate workflow #19
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: Validate RPM Spec | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: fedora:rawhide | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| dnf install -y rpm-build rpmdevtools rpmlint spectool | |
| dnf builddep -y python-debugpy.spec | |
| - name: Validate spec file | |
| run: | | |
| rpmlint python-debugpy.spec || true | |
| - name: Download sources | |
| run: | | |
| spectool -g python-debugpy.spec | |
| - name: Build SRPM | |
| run: | | |
| rpmbuild -bs python-debugpy.spec \ | |
| --define "_sourcedir $PWD" \ | |
| --define "_srcrpmdir $PWD" |