@@ -26,22 +26,29 @@ jobs:
2626 path : libdigidocpp-pkg
2727 repo : open-eid/libdigidocpp
2828 - name : Install dependencies
29- env :
30- HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK : YES
3129 run : |
3230 brew install flatbuffers
33- HASH=($(shasum prepare_osx_build_environment.sh))
3431 curl -O -L -s https://installer.id.ee/media/github/opensc_0.26.1.pkg
35- curl -O -L -s https://installer.id.ee/media/github/${HASH}.zip
3632 sudo installer -verboseR -pkg libdigidocpp-pkg/build/macos/libdigidocpp*.pkg -target /
3733 sudo installer -verboseR -pkg opensc_*.pkg -target /
38- sudo unzip -qq -d /Library/Developer ${HASH}.zip
3934 rm -rf libdigidocpp-pkg
35+ - name : Cache libraries
36+ uses : actions/cache@v4
37+ with :
38+ path : /Library/Developer/Open*
39+ key : vcpkg-macOS-${{ hashFiles('prepare_osx_build_environment.sh') }}
40+ - name : Build libraries
41+ run : |
42+ sudo mkdir -p /Library/Developer/Qt-6.9.2-OpenSSL
43+ sudo ./prepare_osx_build_environment.sh -p /Library/Developer
44+ - name : Install Qt
45+ uses : jurplel/install-qt-action@v4
46+ with :
47+ version : 6.9.2
48+ arch : clang_64
4049 - name : Build
4150 run : |
42- QT_DIR=$(ls -d /Library/Developer/Qt-*-OpenSSL | tail -n 1)
4351 cmake "-GNinja" \
44- -DCMAKE_PREFIX_PATH=${QT_DIR} \
4552 -DOPENSSL_ROOT_DIR=/Library/Developer/OpenSSL \
4653 -DLDAP_ROOT=/Library/Developer/OpenLDAP \
4754 -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -B build -S .
@@ -150,25 +157,32 @@ jobs:
150157 run : |
151158 Rename-Item "libdigidocpp*.msi" libdigidocpp.msi
152159 msiexec /qn /i libdigidocpp.msi
160+ - name : Cache vcpkg
161+ uses : actions/cache@v4
162+ with :
163+ path : ${{ github.workspace }}/vcpkg_cache
164+ key : vcpkg-${{ matrix.target }}-${{ hashFiles('.github/workflows/*', 'vcpkg.json', 'CMakeLists.txt', '**/CMakeLists.txt') }}
153165 - name : Prepare vcpkg
154- uses : lukka/run-vcpkg@v7
166+ uses : lukka/run-vcpkg@v11
155167 with :
156- vcpkgArguments : openssl zlib flatbuffers
157- vcpkgGitCommitId : 031ad89ce6c575df35a8e58707ad2c898446c63e
158- vcpkgTriplet : x64-windows
168+ vcpkgGitCommitId : 98e7cd3a7ba579efc543f8854af800d033031eae
169+ vcpkgJsonGlob : ./vcpkg.json
170+ runVcpkgInstall : true
171+ env :
172+ VCPKG_BINARY_SOURCES : clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
159173 - name : Install Qt
160174 uses : jurplel/install-qt-action@v4
161175 with :
162- version : 6.9.1
176+ version : 6.9.2
163177 arch : win64_msvc2022_64
164178 - name : Setup dev env
165179 uses : ilammy/msvc-dev-cmd@v1
166180 with :
167181 arch : x64
168182 - name : Install WiX
169183 run : |
170- dotnet tool install -g wix --version 6.0.1
171- wix extension -g add WixToolset.UI.wixext/6.0.1
184+ dotnet tool install -g wix --version 6.0.2
185+ wix extension -g add WixToolset.UI.wixext/6.0.2
172186 - name : Build
173187 run : |
174188 cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo `
0 commit comments