PEP517 cleanup #39
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: Debian packages | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| get_version: | |
| name: Get version info | |
| runs-on: ubuntu-22.04 | |
| defaults: | |
| run: | |
| shell: bash | |
| outputs: | |
| version: ${{ steps.git_ver.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get package version | |
| id: git_ver | |
| run: | | |
| version=$(git describe --tags | sed -e "s|v||" -e "s|-g|+g|") | |
| echo "Version from git: ${version}" | |
| echo "version=${version}" >> $GITHUB_OUTPUT | |
| build_debs: | |
| name: ${{ matrix.name }} | |
| runs-on: ubuntu-22.04 | |
| needs: [get_version] | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| name: [ | |
| x64_buster, | |
| x64_bullseye, | |
| x64_bookworm | |
| ] | |
| include: | |
| - name: x64_buster | |
| dist: buster | |
| - name: x64_bullseye | |
| dist: bullseye | |
| - name: x64_bookworm | |
| dist: bookworm | |
| steps: | |
| - name: Check github variables | |
| env: | |
| VERSION: ${{ needs.get_version.outputs.version }} | |
| run: | | |
| echo "Package version from git: ${VERSION}" | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install deps and update debian changelog | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install devscripts | |
| debchange -v ${{ needs.get_version.outputs.version }}-${{ matrix.dist }} -b -M --distribution ${{ matrix.dist }} "ci build" | |
| - name: Build deb packages | |
| uses: jtdor/build-deb-action@v1 | |
| env: | |
| DEB_BUILD_OPTIONS: noautodbgsym | |
| with: | |
| docker-image: "debian:${{ matrix.dist }}-slim" | |
| buildpackage-opts: --build=binary --no-sign | |
| extra-build-deps: git | |
| - name: Upload deb files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "bmaptool_${{ needs.get_version.outputs.version }}-${{ matrix.dist }}" | |
| path: ./debian/artifacts/*.deb |