Skip to content

build-deb-package

build-deb-package #43

Workflow file for this run

name: build-deb-package
on:
workflow_dispatch:
inputs:
version:
description: 'Version to build (without prefix v)'
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install build dependencies
run: |
sudo apt-get update -
sudo apt-get install --no-install-recommends -y \
build-essential \
cmake \
debhelper \
devscripts \
fakeroot \
git \
lintian \
meson \
pkg-config \
libglib2.0-dev \
libgirepository1.0-dev
- name: Build DEB package
run: |
mkdir builddir
git archive --prefix=builddir/argos-${VERSION}/ --format=tar.gz v${VERSION} | tar xzf -
pushd builddir/argos-${VERSION} && debuild -b -tc -us -uc && popd
env:
VERSION: ${{ inputs.version }}
- name: Upload package
uses: actions/upload-artifact@v4
with:
path: builddir/argos_${{ env.VERSION }}-1_all.deb
if-no-files-found: error
env:
VERSION: ${{ inputs.version }}