Skip to content

Build the designer debian packages #73

Build the designer debian packages

Build the designer debian packages #73

Workflow file for this run

name: C/C++ CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: ${{ matrix.target }}-${{ matrix.qt-version }}
strategy:
fail-fast: false
matrix:
target:
- ubuntu-latest
qt-version:
- qt5
- qt6
runs-on: ${{ matrix.target }}
env:
qt6: ${{ matrix.qt-version == 'qt6' && 'yes' || 'no' }}
steps:
- uses: actions/checkout@v3
- name: Install devscripts
run: |
sudo apt -qq update
sudo apt -y dist-upgrade
sudo DEBIAN_FRONTEND=noninteractive apt install -qq devscripts equivs lintian
mk-build-deps -i -s sudo -t "apt --yes --no-install-recommends"
- name: Build source package
env:
DEBFULLNAME: "Jakob Flierl"
DEBEMAIL: "jakob.flierl@gmail.com"
run: |
export TARGET=$(. /etc/lsb-release && echo $DISTRIB_CODENAME)
git fetch --unshallow
git fetch --tags
VERSION="$(git tag -l | tail -n1 | sed -e "s/^v//" -e "s/-/+git/")"
DEBEMAIL="${DEBEMAIL}" dch --create \
--distribution ${TARGET} \
--package libqgcodeeditor \
--newversion ${VERSION}~${TARGET}1 \
"Automatic build from Github"
dpkg-buildpackage -b -rfakeroot -us -uc
- name: Run lintian
run: |
lintian ../libqgcodeeditor*.deb | lintian-info
- name: Upload artifacts
run: |
mkdir -p artifacts
cp ../*.buildinfo ../*.changes ../*.dsc ../*.tar.* ../*.deb artifacts/ 2>/dev/null || true
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-${{ matrix.qt-version }}
if-no-files-found: error
path: artifacts