@@ -85,14 +85,14 @@ jobs:
8585 - name : Prepare vcpkg
8686 uses : lukka/run-vcpkg@v11
8787 with :
88- vcpkgGitCommitId : 5ee5eee0d3e9c6098b24d263e9099edcdcef6631
88+ vcpkgGitCommitId : 031ad89ce6c575df35a8e58707ad2c898446c63e
8989 vcpkgJsonGlob : ./vcpkg.json
9090 runVcpkgInstall : true
9191 env :
9292 VCPKG_DEFAULT_TRIPLET : ${{ matrix.triplet }}
9393 - name : Build
9494 run : |
95- cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=libdigidocpp.${{ matrix.target }}
95+ cmake --preset ${{ matrix.target }} "-GUnix Makefiles" -DCMAKE_BUILD_TYPE=RelWithDebInfo
9696 cmake --build --preset ${{ matrix.target }}
9797 cmake --build --preset ${{ matrix.target }} --target install/strip
9898 zip -q -r libdigidocpp.${{ matrix.target }}.zip libdigidocpp.${{ matrix.target }}
@@ -161,15 +161,12 @@ jobs:
161161 path : libdigidocpp*.*
162162 windows :
163163 name : Build on Windows
164- runs-on : ${{ matrix.image }}
164+ runs-on : windows-2025
165165 strategy :
166166 matrix :
167167 toolset : [143]
168168 platform : [x86, x64, arm64]
169169 include :
170- - toolset : 143
171- image : windows-2022
172- vcvars : " C:\\ Program Files\\ Microsoft Visual Studio\\ 2022\\ Enterprise\\ VC\\ Auxiliary\\ Build\\ vcvarsall.bat"
173170 - platform : x86
174171 setenv : amd64_x86
175172 - platform : x64
@@ -185,18 +182,15 @@ jobs:
185182 - name : Prepare vcpkg
186183 uses : lukka/run-vcpkg@v11
187184 with :
188- vcpkgGitCommitId : 5ee5eee0d3e9c6098b24d263e9099edcdcef6631
185+ vcpkgGitCommitId : 031ad89ce6c575df35a8e58707ad2c898446c63e
189186 vcpkgJsonGlob : ./vcpkg.json
190187 runVcpkgInstall : true
191188 runVcpkgFormatString : " [`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `tests`]"
192189 env :
193190 VCPKG_DEFAULT_TRIPLET : ${{ matrix.platform }}-windows
194191 VCPKG_INSTALLED_DIR : ${{ github.workspace }}/vcpkg_installed_${{ matrix.platform }}
195192 - name : Install dependencies
196- run : |
197- choco install doxygen.install -y > $null
198- Invoke-WebRequest -UserAgent "Wget" "https://sourceforge.net/projects/swig/files/swigwin/swigwin-4.2.1/swigwin-4.2.1.zip/download" -OutFile swig.zip
199- tar xf swig.zip
193+ run : winget install --silent --accept-source-agreements --accept-package-agreements swig doxygen
200194 - uses : actions/setup-java@v4
201195 with :
202196 distribution : ' temurin'
@@ -208,8 +202,9 @@ jobs:
208202 architecture : ${{ matrix.platform }}
209203 - name : Build
210204 run : |
211- & "${{ matrix.vcvars }}" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
212- -swig ${{ github.workspace }}/swigwin-4.2.1/swig.exe `
205+ $swig = (Get-Item "$env:LOCALAPPDATA\Microsoft\WinGet\Links\swig.exe").Target
206+ & "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
207+ -swig $swig `
213208 -doxygen "C:/Program files/doxygen/bin/doxygen.exe" `
214209 -boost
215210 - name : Archive artifacts
0 commit comments