CI #42
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: CI | |
| on: [create, pull_request, push] | |
| jobs: | |
| CI: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 # Needed to make sure to proper git describe | |
| # This is a workaround for https://github.com/actions/checkout/issues/649 | |
| - name: Fix fetched tag | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: /usr/bin/git -c protocol.version=2 fetch --prune --progress | |
| --no-recurse-submodules origin +"$GITHUB_REF:$GITHUB_REF" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install python3 ruby-dev | |
| sudo gem install fpm | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install docutils | |
| - name: Build | |
| run: make PYTHON=python3 all deb | |
| - name: Archive package artifacts | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: deb | |
| path: deb/git-hub_*.deb | |
| if-no-files-found: error |