@@ -5,6 +5,7 @@ permissions:
55env :
66 BUILD_NUMBER : ${{ github.run_number }}
77 CMAKE_BUILD_PARALLEL_LEVEL : 4
8+ UBUNTU_DEPS : ./libdigidocpp-pkg/*.deb cmake libldap2-dev gettext libpcsclite-dev libssl-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libflatbuffers-dev zlib1g-dev
89jobs :
910 macos :
1011 name : Build on macOS
6162 DEBFULLNAME : github-actions
62636364 steps :
64- - name : Install dependencies
65- if : matrix.container == '20.04'
66- run : apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config cmake libldap2-dev gettext libpcsclite-dev libssl-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev lintian libflatbuffers-dev zlib1g-dev
67- - name : Install dependencies
68- if : matrix.container != '20.04'
69- run : apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config cmake libldap2-dev gettext libpcsclite-dev libssl-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools lintian libflatbuffers-dev zlib1g-dev
70- - name : Checkout
71- uses : actions/checkout@v4
72- with :
73- submodules : recursive
7465 - name : Download artifact
7566 uses : dawidd6/action-download-artifact@v6
7667 with :
@@ -79,12 +70,19 @@ jobs:
7970 name : ubuntu_${{ matrix.container }}
8071 path : libdigidocpp-pkg
8172 repo : open-eid/libdigidocpp
82- - name : Install artifact
83- run : |
84- apt install --no-install-recommends -y ./libdigidocpp-pkg/*.deb
85- rm -rf libdigidocpp-pkg
73+ - name : Install dependencies
74+ if : matrix.container == '20.04'
75+ run : apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config lintian ./libdigidocpp-pkg/*.deb cmake libldap2-dev gettext libpcsclite-dev libssl-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libflatbuffers-dev zlib1g-dev
76+ - name : Install dependencies
77+ if : matrix.container != '20.04'
78+ run : apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config lintian ${UBUNTU_DEPS}
79+ - name : Checkout
80+ uses : actions/checkout@v4
81+ with :
82+ submodules : recursive
8683 - name : Setup changelog
8784 run : |
85+ rm -rf libdigidocpp-pkg
8886 export VERSION=$(grep project CMakeLists.txt | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")
8987 export VERSIONEX=${VERSION}.${BUILD_NUMBER}.$(lsb_release -rs)
9088 dch --distribution $(lsb_release -cs) -v ${VERSIONEX} "Release ${VERSIONEX}."
@@ -216,8 +214,6 @@ jobs:
216214 uses : actions/checkout@v4
217215 with :
218216 submodules : recursive
219- - name : Install dependencies
220- run : sudo apt update -qq && sudo apt install --no-install-recommends -y cmake libldap2-dev gettext libpcsclite-dev libminizip-dev libxml-security-c-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libflatbuffers-dev zlib1g-dev
221217 - name : Download artifact
222218 uses : dawidd6/action-download-artifact@v6
223219 with :
@@ -226,8 +222,8 @@ jobs:
226222 name : ubuntu_22.04
227223 path : libdigidocpp-pkg
228224 repo : open-eid/libdigidocpp
229- - name : Install artifact
230- run : sudo dpkg -i libdigidocpp-pkg/*.deb
225+ - name : Install dependencies
226+ run : sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
231227 - name : Download Coverity Build Tool
232228 run : |
233229 curl -s -d "token=$TOKEN&project=$PROJECTNAME" -o cov-analysis-linux64.tar.gz https://scan.coverity.com/download/cxx/linux64
@@ -260,8 +256,6 @@ jobs:
260256 uses : actions/checkout@v4
261257 with :
262258 submodules : recursive
263- - name : Install dependencies
264- run : sudo apt update -qq && sudo apt install --no-install-recommends -y cmake libldap2-dev gettext libpcsclite-dev libminizip-dev libxml-security-c-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libflatbuffers-dev zlib1g-dev
265259 - name : Download artifact
266260 uses : dawidd6/action-download-artifact@v6
267261 with :
@@ -270,8 +264,8 @@ jobs:
270264 name : ubuntu_22.04
271265 path : libdigidocpp-pkg
272266 repo : open-eid/libdigidocpp
273- - name : Install artifact
274- run : sudo dpkg -i libdigidocpp-pkg/*.deb
267+ - name : Install dependencies
268+ run : sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
275269 - name : Initialize CodeQL
276270 uses : github/codeql-action/init@v3
277271 with :
0 commit comments