9393 uses : actions/cache@v4
9494 with :
9595 path : ${{ github.workspace }}/vcpkg_cache
96- key : vcpkg-${{ matrix.target }}-${{ hashFiles('.github/workflows/*', ' vcpkg.json', 'vcpkg-ports/**', 'CMakeLists.txt', '**/CMakeLists.txt', 'CMakePresets.json ') }}
96+ key : vcpkg-${{ matrix.target }}-${{ hashFiles('vcpkg.json', 'vcpkg-ports/**') }}
9797 - name : Prepare vcpkg
9898 uses : lukka/run-vcpkg@v11
9999 with :
@@ -139,20 +139,30 @@ jobs:
139139 name : fedora_${{ matrix.container }}
140140 path : build/libdigidocpp*.rpm
141141 ubuntu :
142- name : Build on Ubuntu ${{ matrix.container }} ${{ matrix.arch }}
142+ name : Build on ${{ matrix.dist }} ${{ matrix.ver }} ${{ matrix.arch }}
143143 runs-on : ubuntu-24.04${{ matrix.arch == 'arm64' && '-arm' || '' }}
144- container : ubuntu :${{ matrix.container }}
144+ container : ${{ matrix.dist }} :${{ matrix.ver }}
145145 strategy :
146146 matrix :
147- container : ['22.04', '24.04', '25.04', '25.10']
148- arch : ['amd64', 'arm64']
147+ dist : [ubuntu]
148+ ver : ['22.04', '24.04', '25.04', '25.10']
149+ arch : [amd64, arm64]
150+ java : [17]
151+ include : [
152+ { dist: debian, ver: 'bookworm', arch: amd64, java: 17 },
153+ { dist: debian, ver: 'trixie', arch: amd64, java: 21 },
154+ ]
149155 env :
150156 DEBIAN_FRONTEND : noninteractive
151157 DEBFULLNAME : github-actions
152158153159 steps :
154160 - name : Install dependencies
155- 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
161+ run : |
162+ echo 'path-exclude=/usr/share/man/*' > /etc/dpkg/dpkg.cfg.d/99-nodocs
163+ echo 'path-exclude=/usr/share/doc/*' >> /etc/dpkg/dpkg.cfg.d/99-nodocs
164+ echo 'path-exclude=/usr/share/doc-base/*' >> /etc/dpkg/dpkg.cfg.d/99-nodocs
165+ apt update -qq && apt install --no-install-recommends -y lsb-release build-essential devscripts debhelper lintian pkg-config ${UBUNTU_DEPS} doxygen swig openjdk-${{ matrix.java }}-jdk-headless libpython3-dev python3-setuptools libboost-test-dev
156166 - name : Checkout
157167 uses : actions/checkout@v5
158168 - name : Setup changelog
@@ -162,14 +172,14 @@ jobs:
162172 dch --distribution $(lsb_release -cs) -v ${VERSIONEX} "Release ${VERSIONEX}."
163173 - name : Build packages
164174 run : |
165- JAVA_HOME=/usr/lib/jvm/java-17 -openjdk-${{ matrix.arch }} dpkg-buildpackage -us -uc
175+ JAVA_HOME=/usr/lib/jvm/java-${{ matrix.java }} -openjdk-${{ matrix.arch }} dpkg-buildpackage -us -uc
166176 mv ../libdigidocpp*.* .
167177 - name : Lintian
168178 run : lintian *.deb;
169179 - name : Archive artifacts
170180 uses : actions/upload-artifact@v4
171181 with :
172- name : ubuntu_ ${{ matrix.container }}_${{ matrix.arch }}
182+ name : ${{ matrix.dist }}_${{ matrix.ver }}_${{ matrix.arch }}
173183 path : libdigidocpp*.*
174184 windows :
175185 name : Build on Windows
@@ -195,7 +205,7 @@ jobs:
195205 uses : actions/cache@v4
196206 with :
197207 path : ${{ github.workspace }}/vcpkg_cache
198- key : vcpkg-${{ matrix.toolset }}-${{ matrix.platform }}-${{ hashFiles('.github/workflows/*', ' vcpkg.json', 'vcpkg-ports/**', 'CMakeLists.txt', '**/CMakeLists.txt', 'CMakePresets.json ') }}
208+ key : vcpkg-${{ matrix.toolset }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json', 'vcpkg-ports/**') }}
199209 - name : Prepare vcpkg
200210 uses : lukka/run-vcpkg@v11
201211 with :
@@ -298,7 +308,7 @@ jobs:
298308 - name : Install dependencies
299309 run : sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
300310 - name : Initialize CodeQL
301- uses : github/codeql-action/init@v3
311+ uses : github/codeql-action/init@v4
302312 with :
303313 languages : cpp
304314 queries : +security-and-quality
@@ -311,12 +321,12 @@ jobs:
311321 -DBUILD_TOOLS=NO
312322 cmake --build build
313323 - name : Perform CodeQL Analysis
314- uses : github/codeql-action/analyze@v3
324+ uses : github/codeql-action/analyze@v4
315325 with :
316326 upload : False
317327 output : sarif-results
318328 - name : Filter results
319- uses : advanced-security/filter-sarif@develop
329+ uses : advanced-security/filter-sarif@v1
320330 with :
321331 patterns : |
322332 -src/json.hpp
@@ -326,6 +336,6 @@ jobs:
326336 input : sarif-results/cpp.sarif
327337 output : sarif-results/cpp.sarif
328338 - name : Upload results
329- uses : github/codeql-action/upload-sarif@v3
339+ uses : github/codeql-action/upload-sarif@v4
330340 with :
331341 sarif_file : sarif-results/cpp.sarif
0 commit comments