2022-11-06 14:05:23 +03:00
|
|
|
name: Build Debian packages
|
|
|
|
|
2024-02-25 02:35:56 +03:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
paths:
|
|
|
|
- .github/workflows/build-deb.yml
|
|
|
|
- contrib/**
|
|
|
|
- daemon/**
|
|
|
|
- debian/**
|
|
|
|
- i18n/**
|
|
|
|
- libi2pd/**
|
|
|
|
- libi2pd_client/**
|
|
|
|
- Makefile
|
|
|
|
- Makefile.linux
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- '*'
|
2022-11-06 14:05:23 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.dist }}
|
|
|
|
runs-on: ubuntu-latest
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2022-11-06 14:05:23 +03:00
|
|
|
strategy:
|
2023-02-23 17:13:59 +03:00
|
|
|
fail-fast: false
|
2022-11-06 14:05:23 +03:00
|
|
|
matrix:
|
|
|
|
dist: ['buster', 'bullseye', 'bookworm']
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2022-11-06 14:05:23 +03:00
|
|
|
steps:
|
2023-02-26 23:38:23 +03:00
|
|
|
- name: Checkout
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-11-06 14:05:23 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-02-26 23:38:23 +03:00
|
|
|
|
2024-05-13 03:32:09 +03:00
|
|
|
- name: Commit Hash
|
|
|
|
id: commit
|
|
|
|
uses: prompt/actions-commit-hash@v3.0.0
|
|
|
|
|
2023-02-26 23:38:23 +03:00
|
|
|
- name: Build package
|
|
|
|
uses: jtdor/build-deb-action@v1
|
2022-11-06 14:05:23 +03:00
|
|
|
with:
|
|
|
|
docker-image: debian:${{ matrix.dist }}-slim
|
|
|
|
buildpackage-opts: --build=binary --no-sign
|
2024-05-13 03:32:09 +03:00
|
|
|
before-build-hook: debchange --controlmaint --local "+${{ steps.commit.outputs.short }}~${{ matrix.dist }}" -b --distribution ${{ matrix.dist }} "CI build"
|
2023-02-23 17:24:15 +03:00
|
|
|
extra-build-deps: devscripts git
|
2023-02-26 23:38:23 +03:00
|
|
|
|
|
|
|
- name: Upload package
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-11-06 14:05:23 +03:00
|
|
|
with:
|
|
|
|
name: i2pd_${{ matrix.dist }}
|
|
|
|
path: debian/artifacts/i2pd_*.deb
|
2023-02-26 23:38:23 +03:00
|
|
|
|
|
|
|
- name: Upload debugging symbols
|
2024-04-27 16:49:48 +03:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-11-06 14:05:23 +03:00
|
|
|
with:
|
|
|
|
name: i2pd-dbgsym_${{ matrix.dist }}
|
|
|
|
path: debian/artifacts/i2pd-dbgsym_*.deb
|