2022-11-06 11:05:23 +00:00
|
|
|
name: Build Debian packages
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.dist }}
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-26 20:38:23 +00:00
|
|
|
|
2022-11-06 11:05:23 +00:00
|
|
|
strategy:
|
2023-02-23 14:13:59 +00:00
|
|
|
fail-fast: false
|
2022-11-06 11:05:23 +00:00
|
|
|
matrix:
|
|
|
|
dist: ['buster', 'bullseye', 'bookworm']
|
2023-02-26 20:38:23 +00:00
|
|
|
|
2022-11-06 11:05:23 +00:00
|
|
|
steps:
|
2023-02-26 20:38:23 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2022-11-06 11:05:23 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-02-26 20:38:23 +00:00
|
|
|
|
|
|
|
- name: Build package
|
|
|
|
uses: jtdor/build-deb-action@v1
|
2022-11-06 11:05:23 +00:00
|
|
|
with:
|
|
|
|
docker-image: debian:${{ matrix.dist }}-slim
|
|
|
|
buildpackage-opts: --build=binary --no-sign
|
2023-02-23 14:35:38 +00:00
|
|
|
before-build-hook: debchange --controlmaint --local "+${{ github.sha }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build"
|
2023-02-23 14:24:15 +00:00
|
|
|
extra-build-deps: devscripts git
|
2023-02-26 20:38:23 +00:00
|
|
|
|
|
|
|
- name: Upload package
|
|
|
|
uses: actions/upload-artifact@v3
|
2022-11-06 11:05:23 +00:00
|
|
|
with:
|
|
|
|
name: i2pd_${{ matrix.dist }}
|
|
|
|
path: debian/artifacts/i2pd_*.deb
|
2023-02-26 20:38:23 +00:00
|
|
|
|
|
|
|
- name: Upload debugging symbols
|
|
|
|
uses: actions/upload-artifact@v3
|
2022-11-06 11:05:23 +00:00
|
|
|
with:
|
|
|
|
name: i2pd-dbgsym_${{ matrix.dist }}
|
|
|
|
path: debian/artifacts/i2pd-dbgsym_*.deb
|