Add common "--ignore-whitespace/-b" option to annotate callbacks. (#531) #99
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 RPMs | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-rpm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y -V --no-install-recommends \ | |
| devscripts \ | |
| equivs \ | |
| git \ | |
| perl \ | |
| python3-sphinx \ | |
| python3-sphinx-rtd-theme \ | |
| rpm | |
| - name: Build RPMs | |
| run: | | |
| if [[ ${GITHUB_REF} == refs/tags/v* ]]; then | |
| export RELEASE=0 # avoids "beta" in bin/get_version.sh | |
| fi | |
| make rpms | |
| - name: Get version | |
| id: get_version | |
| shell: bash | |
| run: | | |
| if [[ $GITHUB_REF == refs/tags/v* ]]; then | |
| VERSION=${GITHUB_REF#refs/tags/} | |
| else | |
| VERSION=$(git describe --tags --always) | |
| fi | |
| echo "VERSION=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Create Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| tag_name: ${{ steps.get_version.outputs.VERSION }} | |
| name: ${{ steps.get_version.outputs.VERSION }} | |
| files: | | |
| *.noarch.rpm | |
| *.src.rpm | |
| *.tar.gz |