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 :
@@ -181,10 +181,13 @@ jobs:
181181 include :
182182 - platform : x86
183183 setenv : amd64_x86
184+ python : 32
184185 - platform : x64
185186 setenv : amd64
187+ python : 64
186188 - platform : arm64
187189 setenv : amd64_arm64
190+ python : arm64
188191 env :
189192 VER_SUFFIX : .VS${{ matrix.toolset }}
190193 CXXFLAGS : ' /D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR' # https://github.com/actions/runner-images/issues/10004
@@ -195,7 +198,7 @@ jobs:
195198 uses : actions/cache@v4
196199 with :
197200 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 ') }}
201+ key : vcpkg-${{ matrix.toolset }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json', 'vcpkg-ports/**') }}
199202 - name : Prepare vcpkg
200203 uses : lukka/run-vcpkg@v11
201204 with :
@@ -207,23 +210,20 @@ jobs:
207210 VCPKG_DEFAULT_TRIPLET : ${{ matrix.platform }}-windows
208211 VCPKG_INSTALLED_DIR : ${{ github.workspace }}/vcpkg_installed_${{ matrix.platform }}
209212 - name : Install dependencies
210- run : winget install --silent --accept-source-agreements --accept-package-agreements swig doxygen
213+ run : winget install --silent --accept-source-agreements --accept-package-agreements swig doxygen 9NQ7512CXL7T
211214 - uses : actions/setup-java@v4
212215 with :
213216 distribution : ' temurin'
214217 java-version : ' 17'
215- - uses : actions/setup-python@v5
216- if : matrix.platform != 'arm64'
217- with :
218- python-version : 3.12
219- architecture : ${{ matrix.platform }}
220218 - name : Build
221219 run : |
220+ & "$env:LOCALAPPDATA\Microsoft\WindowsApps\py.exe" install --target=.\python\${{ matrix.platform }} 3.12-${{ matrix.python }}
222221 $swig = (Get-Item "$env:LOCALAPPDATA\Microsoft\WinGet\Links\swig.exe").Target
223222 & "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build\\vcvarsall.bat" ${{ matrix.setenv }} "&&" pwsh build.ps1 `
224223 -swig $swig `
225224 -doxygen "C:/Program files/doxygen/bin/doxygen.exe" `
226- -boost
225+ -boost `
226+ -python ${{ github.workspace }}/python
227227 - name : Archive artifacts
228228 uses : actions/upload-artifact@v4
229229 with :
0 commit comments