Skip to content

Commit 4d03c2c

Browse files
authored
Merge branch 'main' into exception
2 parents 1da7836 + 1cab9e2 commit 4d03c2c

27 files changed

+352
-89
lines changed

.github/workflows/cmake-linux-codeql.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,27 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
submodules: recursive
22+
persist-credentials: false
2223

23-
- uses: github/codeql-action/init@v3
24+
- uses: github/codeql-action/init@v4
2425
with:
2526
languages: cpp
2627
queries: +security-and-quality
2728

28-
- uses: github/codeql-action/autobuild@v3
29+
- uses: github/codeql-action/autobuild@v4
2930

30-
- uses: github/codeql-action/analyze@v3
31+
- uses: github/codeql-action/analyze@v4
3132
with:
3233
upload: False
3334
output: sarif-results
3435

35-
- uses: advanced-security/filter-sarif@develop
36+
- uses: advanced-security/filter-sarif@v1
3637
with:
3738
patterns: |
3839
-**/*autogen*/**
3940
input: sarif-results/cpp.sarif
4041
output: sarif-results/cpp.sarif
4142

42-
- uses: github/codeql-action/upload-sarif@v3
43+
- uses: github/codeql-action/upload-sarif@v4
4344
with:
4445
sarif_file: sarif-results/cpp.sarif

.github/workflows/cmake-linux-coverity.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- uses: actions/checkout@v4
2727
with:
2828
submodules: recursive
29+
persist-credentials: false
2930

3031
- name: Configure CMake
3132
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .

.github/workflows/cmake-linux-fedora.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
container: fedora:${{ matrix.container }}
1515
strategy:
1616
matrix:
17-
container: [41, 42]
17+
container: [42, 43]
1818

1919
steps:
2020
- name: Install Deps
@@ -23,14 +23,15 @@ jobs:
2323
- uses: actions/checkout@v4
2424
with:
2525
submodules: recursive
26+
persist-credentials: false
2627

2728
- name: Configure CMake
2829
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SYSCONFDIR=/etc -B build -S .
2930

3031
- name: Build
3132
run: cmake --build build --config $BUILD_TYPE --target package
3233

33-
- uses: actions/upload-artifact@v4
34+
- uses: actions/upload-artifact@v5
3435
with:
3536
name: web-eid-app-fedora-build-fedora${{matrix.container}}-${{github.run_number}}
3637
path: build/*rpm

.github/workflows/cmake-linux-ubuntu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
container: ubuntu:${{matrix.container}}
1818
strategy:
1919
matrix:
20-
container: ['22.04', '24.04', '25.04']
20+
container: ['22.04', '24.04', '25.04', '25.10']
2121
arch: ['amd64', 'arm64']
2222

2323
steps:
@@ -27,6 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
with:
2929
submodules: recursive
30+
persist-credentials: false
3031

3132
- name: Configure CMake
3233
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
@@ -40,7 +41,7 @@ jobs:
4041
- name: Test package
4142
run: lintian build/*.deb
4243

43-
- uses: actions/upload-artifact@v4
44+
- uses: actions/upload-artifact@v5
4445
with:
4546
name: web-eid-app-ubuntu-build-ubuntu${{matrix.container}}-${{ matrix.arch }}-${{github.run_number}}
4647
path: build/*.*deb

.github/workflows/cmake-macos.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818

1919
steps:
2020
- name: Checkout code
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2222
with:
2323
submodules: recursive
24+
persist-credentials: false
2425

2526
- name: Cache
2627
uses: actions/cache@v4
@@ -64,7 +65,7 @@ jobs:
6465
- name: Install Qt
6566
uses: jurplel/install-qt-action@v4
6667
with:
67-
version: 6.9.1
68+
version: 6.10.0
6869
arch: clang_64
6970

7071
- name: Configure
@@ -80,7 +81,7 @@ jobs:
8081
# run: ctest -V -C ${BUILD_TYPE} --test-dir ${BUILD_DIR}
8182

8283
- name: Upload artifacts
83-
uses: actions/upload-artifact@v4
84+
uses: actions/upload-artifact@v5
8485
with:
8586
name: web-eid-app-macos-build-${{github.run_number}}
8687
path: |

.github/workflows/cmake-windows.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,43 @@ env:
66
BUILD_TYPE: RelWithDebInfo
77
BUILD_NUMBER: ${{github.run_number}}
88
CMAKE_BUILD_PARALLEL_LEVEL: 4
9+
VCPKG_INSTALLED_DIR: ${{ github.workspace }}/build/vcpkg_installed
10+
# Use libelectronic-id vcpkg manifest for dependencies
11+
VCPKG_MANIFEST_DIR: ./lib/libelectronic-id/.github
912

1013
jobs:
1114
build:
12-
runs-on: windows-2022
15+
runs-on: windows-2025
1316
strategy:
1417
matrix:
1518
arch: [x64, arm64]
1619

1720
steps:
1821
- name: Checkout code
19-
uses: actions/checkout@v4
22+
uses: actions/checkout@v5
2023
with:
2124
submodules: recursive
25+
persist-credentials: false
26+
27+
- name: Cache vcpkg
28+
uses: actions/cache@v4
29+
with:
30+
path: ${{ github.workspace }}/vcpkg_cache
31+
key: vcpkg-${{ matrix.arch }}-${{ hashFiles(format('{0}/vcpkg.json', env.VCPKG_MANIFEST_DIR)) }}
2232

2333
- name: Prepare vcpkg and libraries
24-
uses: lukka/run-vcpkg@v7
34+
uses: lukka/run-vcpkg@v11
2535
with:
26-
vcpkgArguments: gtest openssl
27-
vcpkgTriplet: ${{matrix.arch}}-windows
28-
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
36+
vcpkgJsonGlob: ${{ env.VCPKG_MANIFEST_DIR }}/vcpkg.json
37+
runVcpkgInstall: true
38+
env:
39+
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
40+
VCPKG_DEFAULT_TRIPLET: ${{ matrix.arch }}-windows
2941

3042
- name: Install Qt
3143
uses: jurplel/install-qt-action@v4
3244
with:
33-
version: 6.9.1
45+
version: 6.9.3
3446
arch: ${{ matrix.arch == 'arm64' && 'win64_msvc2022_arm64_cross_compiled' || 'win64_msvc2022_64' }}
3547

3648
- name: Setup MS Visual C++ dev env
@@ -40,16 +52,17 @@ jobs:
4052

4153
- name: Install WiX
4254
run: |
43-
dotnet tool install --global wix --version 6.0.1
44-
wix extension -g add WixToolset.UI.wixext/6.0.1
45-
wix extension -g add WixToolset.Util.wixext/6.0.1
46-
wix extension -g add WixToolset.BootstrapperApplications.wixext/6.0.1
55+
dotnet tool install --global wix --version 6.0.2
56+
wix extension -g add WixToolset.UI.wixext/6.0.2
57+
wix extension -g add WixToolset.Util.wixext/6.0.2
58+
wix extension -g add WixToolset.BootstrapperApplications.wixext/6.0.2
4759
4860
- name: Configure
4961
run: |
5062
cmake "-GNinja" -S . -B build `
5163
"-DCMAKE_TOOLCHAIN_FILE=${env:RUNVCPKG_VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" `
52-
"-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}"
64+
"-DCMAKE_BUILD_TYPE=${env:BUILD_TYPE}" `
65+
"-DVCPKG_MANIFEST_DIR=${{ env.VCPKG_MANIFEST_DIR }}"
5366
5467
- name: Build
5568
run: |
@@ -62,7 +75,7 @@ jobs:
6275
run: ctest -V -C ${env:BUILD_TYPE} --test-dir build
6376

6477
- name: Upload artifacts
65-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v5
6679
with:
6780
name: web-eid-app-windows-build-${{matrix.arch}}-${{github.run_number}}
6881
path: |

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ elseif($ENV{CI_PIPELINE_IID})
1111
else()
1212
set(BUILD_NUMBER 0)
1313
endif()
14-
project(web-eid VERSION 2.8.0.${BUILD_NUMBER})
14+
project(web-eid VERSION 2.9.0.${BUILD_NUMBER}
15+
DESCRIPTION "Web eID browser extension helper application"
16+
HOMEPAGE_URL https://github.com/web-eid/web-eid-app
17+
)
1518

1619
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
1720
set(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION_TWEAK})

README.md

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,13 @@ https://github.com/mrts/docker-qt-cmake-gtest-valgrind-ubuntu/blob/master/Docker
266266

267267
### Windows
268268

269-
- Download Visual Studio 2019 community installer from https://visualstudio.microsoft.com/ and install _Desktop C++ Development_
269+
- Download Visual Studio 2022 community installer from https://visualstudio.microsoft.com/ and install _Desktop C++ Development_
270270
- Install WIX toolset
271271

272-
dotnet tool install --global wix --version 5.0.0
273-
wix extension -g add WixToolset.UI.wixext/5.0.0
274-
wix extension -g add WixToolset.Util.wixext/5.0.0
275-
wix extension -g add WixToolset.Bal.wixext/5.0.0
272+
dotnet tool install --global wix --version 6.0.2
273+
wix extension -g add WixToolset.UI.wixext/6.0.2
274+
wix extension -g add WixToolset.Util.wixext/6.0.2
275+
wix extension -g add WixToolset.Bal.wixext/6.0.2
276276

277277
- Download and install Git for Windows from https://git-scm.com/download/win
278278
- Download and install CMake from https://cmake.org/download/
@@ -283,12 +283,8 @@ https://github.com/mrts/docker-qt-cmake-gtest-valgrind-ubuntu/blob/master/Docker
283283
.\bootstrap-vcpkg.bat
284284
.\vcpkg integrate install
285285

286-
- Install _Google Test_ and _OpenSSL_ with _vcpkg_:
287-
288-
.\vcpkg install --recurse --triplet x64-windows --clean-after-build gtest openssl
289-
290286
- Install _Qt_ with the official [_Qt Online Installer_](https://www.qt.io/download-qt-installer),
291-
choose _Custom installation > Qt 6.6.3 > MSVC 2019 64-bit_.
287+
choose _Custom installation > Qt 6.10.0 > MSVC 2022 64-bit_.
292288

293289
### macOS
294290

@@ -303,7 +299,7 @@ https://github.com/mrts/docker-qt-cmake-gtest-valgrind-ubuntu/blob/master/Docker
303299
- Create symlink to _OpenSSL_ location and setup environment variables required
304300
by _CMake_:
305301

306-
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl@1.1
302+
export OPENSSL_ROOT_DIR=/usr/local/opt/openssl@3.0
307303
export QT_DIR=/usr/local/opt/qt6/lib/cmake/Qt6
308304

309305
## Building and testing
@@ -320,7 +316,7 @@ Use _Powershell_ to run the following commands to build the project.
320316

321317
- Set the _Qt_ installation directory variable:
322318

323-
$QT_ROOT = "C:\Qt\6.2.4\msvc2019_64"
319+
$QT_ROOT = "C:\Qt\6.10.0\msvc2022_64"
324320

325321
- Set the _vcpkg_ installation directory variable:
326322

@@ -332,11 +328,11 @@ Use _Powershell_ to run the following commands to build the project.
332328

333329
- Run _CMake_:
334330

335-
Optionally, WIX Toolset v3 is required for the installer, and the WIX environment variable should be set for the installed target.
336-
337-
cmake "-DCMAKE_PREFIX_PATH=${QT_ROOT}" `
331+
cmake -A x64 -B build -S .
332+
"-DCMAKE_PREFIX_PATH=${QT_ROOT}" `
338333
"-DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" `
339-
"-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" -A x64 -B build -S .
334+
"-DCMAKE_BUILD_TYPE=${BUILD_TYPE}" `
335+
"-DVCPKG_MANIFEST_DIR=lib/libelectronic-id/.github"
340336

341337
- Run the build and installer build:
342338

@@ -353,9 +349,9 @@ Optionally, WIX Toolset v3 is required for the installer, and the WIX environmen
353349

354350
## Adding and updating translations
355351

356-
You can use the free [Qt Linguist application](https://doc.qt.io/qt-5/qtlinguist-index.html)
352+
You can use the free [Qt Linguist application](https://doc.qt.io/qt-6/qtlinguist-index.html)
357353
to add and edit translations.
358354

359355
Run the following command to update Qt Linguist TS files:
360356

361-
lupdate src/ -ts ./src/ui/translations/*.ts
357+
cmake --build build --config ${BUILD_TYPE} --target update_translations

build.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
param(
22
[string]$cmake = "C:\Program Files\CMake\bin\cmake.exe",
33
[string]$vcpkgroot = "C:\vcpkg",
4-
[string]$qtdir = "C:\Qt\6.5.2\msvc2019_64"
4+
[string]$qtdir = "C:\Qt\6.10.0\msvc2022_64",
5+
[string]$buildtype = "RelWithDebInfo",
6+
[string]$arch = "x64"
57
)
68

7-
& $cmake -A x64 "-DCMAKE_TOOLCHAIN_FILE=$vcpkgroot\scripts\buildsystems\vcpkg.cmake" "-DQt6_DIR=$qtdir" -S . -B build
8-
& $cmake --build build
9+
& $cmake -S . -B build\windows -A $arch -DCMAKE_BUILD_TYPE=$buildtype "-DCMAKE_PREFIX_PATH=$qtdir" "-DCMAKE_TOOLCHAIN_FILE=$vcpkgroot\scripts\buildsystems\vcpkg.cmake" "-DVCPKG_MANIFEST_DIR=lib/libelectronic-id/.github"
10+
& $cmake --build build\windows --config $buildtype

0 commit comments

Comments
 (0)