@@ -127,37 +127,57 @@ jobs:
127
127
name : fedora_${{ matrix.container }}
128
128
path : build/libdigidocpp*.rpm
129
129
ubuntu :
130
- name : Build on Ubuntu ${{ matrix.container }} ${{ matrix.arch }}
130
+ name : Build on ${{ matrix.dist }} ${{ matrix.rel }} ${{ matrix.arch }}
131
131
runs-on : ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}
132
- container : ubuntu :${{ matrix.container }}
132
+ container : ${{ matrix.dist }} :${{ matrix.rel }}
133
133
strategy :
134
134
matrix :
135
- container : ['22.04', '24.04', '25.04']
136
- arch : ['amd64', 'arm64']
135
+ include :
136
+ # ubuntu x64
137
+ - {arch: amd64, dist: ubuntu, rel: oracular}
138
+ - {arch: amd64, dist: ubuntu, rel: noble}
139
+ - {arch: amd64, dist: ubuntu, rel: jammy}
140
+
141
+ # ubuntu arm
142
+ - {arch: arm64, dist: ubuntu, rel: oracular}
143
+ - {arch: arm64, dist: ubuntu, rel: noble}
144
+ - {arch: arm64, dist: ubuntu, rel: jammy}
145
+
146
+ # debian x64
147
+ - {arch: amd64, dist: debian, rel: sid}
148
+ - {arch: amd64, dist: debian, rel: forky}
149
+ - {arch: amd64, dist: debian, rel: trixie}
150
+ - {arch: amd64, dist: debian, rel: bookworm}
151
+
152
+ # debian arm
153
+ - {arch: arm64, dist: debian, rel: sid}
154
+ - {arch: arm64, dist: debian, rel: forky}
155
+ - {arch: arm64, dist: debian, rel: trixie}
156
+ - {arch: arm64, dist: debian, rel: bookworm}
137
157
env :
138
158
DEBIAN_FRONTEND : noninteractive
139
159
DEBFULLNAME : github-actions
140
160
141
161
steps :
142
162
- name : Install dependencies
143
- 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
163
+ run : apt update -qq && apt install --no-install-recommends -y ${UBUNTU_DEPS} lsb-release build-essential devscripts debhelper lintian pkg-config doxygen swig default -jdk-headless libpython3-dev python3-setuptools libboost-test-dev
144
164
- name : Checkout
145
165
uses : actions/checkout@v4
146
166
- name : Setup changelog
147
167
run : |
148
168
export VERSION=$(grep project CMakeLists.txt | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")
149
- export VERSIONEX=${VERSION}.${BUILD_NUMBER}.$(lsb_release -rs)
150
- dch --distribution $(lsb_release -cs) -v ${VERSIONEX} "Release ${VERSIONEX}."
169
+ export VERSIONEX=${VERSION}+${{matrix.rel}}.${BUILD_NUMBER}
170
+ dch --distribution ${{matrix.rel}} -v ${VERSIONEX} "Release ${VERSIONEX}."
151
171
- name : Build packages
152
172
run : |
153
- JAVA_HOME=/usr/lib/jvm/java-17-openjdk-${{ matrix.arch }} dpkg-buildpackage -us -uc
173
+ JAVA_HOME=/usr/lib/jvm/default-java dpkg-buildpackage -us -uc
154
174
mv ../libdigidocpp*.* .
155
175
- name : Lintian
156
176
run : lintian *.deb;
157
177
- name : Archive artifacts
158
178
uses : actions/upload-artifact@v4
159
179
with :
160
- name : ubuntu_ ${{ matrix.container }}_${{ matrix.arch }}
180
+ name : ${{ matrix.dist }}_${{ matrix.rel }}_${{ matrix.arch }}
161
181
path : libdigidocpp*.*
162
182
windows :
163
183
name : Build on Windows
0 commit comments