Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
DEBEMAIL: [email protected]
steps:
- name: Install dependencies
run: apt update -qq && apt install --no-install-recommends -y lsb-release build-essential devscripts debhelper lintian pkg-config ${UBUNTU_DEPS} doxygen swig openjdk-17-jdk-headless libpython3-dev python3-setuptools libboost-test-dev
run: apt update -qq && apt install --no-install-recommends -y lsb-release build-essential devscripts debhelper lintian pkg-config ${UBUNTU_DEPS} doxygen swig default-jdk-headless libpython3-dev python3-setuptools libboost-test-dev
- name: Checkout
uses: actions/checkout@v4
- name: Setup changelog
Expand All @@ -150,7 +150,7 @@ jobs:
dch --distribution $(lsb_release -cs) -v ${VERSIONEX} "Release ${VERSIONEX}."
- name: Build packages
run: |
JAVA_HOME=/usr/lib/jvm/java-17-openjdk-${{ matrix.arch }} dpkg-buildpackage -us -uc
JAVA_HOME=/usr/lib/jvm/default-java dpkg-buildpackage -us -uc
mv ../libdigidocpp*.* .
- name: Lintian
run: lintian *.deb;
Expand Down
66 changes: 66 additions & 0 deletions .github/workflows/debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Debian
on:
schedule:
- cron: "0 4 * * *"
push:
tags:
- "v*"
workflow_dispatch:
permissions:
contents: read
env:
BUILD_NUMBER: ${{github.run_number}}
CMAKE_BUILD_PARALLEL_LEVEL: 4
jobs:
debian:
name: ${{matrix.rel}} ${{matrix.arch}}
runs-on: ubuntu-24.04${{matrix.arch == 'arm64' && '-arm' || ''}}
container: debian:${{matrix.rel}}
strategy:
matrix:
rel: [sid, forky, trixie, bookworm]
arch: [amd64, arm64]
env:
DEBIAN_FRONTEND: noninteractive
DEBFULLNAME: github-actions
DEBEMAIL: [email protected]
steps:
- name: Dependencies
run: |
apt-get -qq update
apt-get -y install --no-install-recommends \
build-essential \
cmake \
debhelper \
default-jdk-headless \
devscripts \
doxygen \
libboost-test-dev \
libpython3-dev \
libxml2-dev \
libxmlsec1-dev \
lintian \
lsb-release \
pkg-config \
python3-setuptools \
swig \
zlib1g-dev \
- name: Checkout
uses: actions/checkout@v4
- name: Setup
run: |
export VERSION=$(grep project CMakeLists.txt | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")
export VERSIONEX=${VERSION}+${{matrix.rel}}.${BUILD_NUMBER}
dch --distribution ${{matrix.rel}} -v ${VERSIONEX} "Release ${VERSIONEX}."
- name: Build
run: |
JAVA_HOME=/usr/lib/jvm/default-java dpkg-buildpackage -us -uc
mv ../libdigidocpp*.* .
- name: Check
run: |
lintian *.deb
- name: Publish
uses: actions/upload-artifact@v4
with:
name: debian_${{matrix.rel}}_${{matrix.arch}}
path: libdigidocpp*.*
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Build-Depends:
libxmlsec1-dev,
doxygen,
swig,
java17-sdk-headless,
default-jdk-headless,
libpython3-dev,
python3-setuptools
Standards-Version: 4.6.1
Expand Down
Loading