@@ -13,16 +13,14 @@ jobs:
1313 name : CPU (fftw, OpenBLAS, windows-latest)
1414 runs-on : windows-latest
1515 env :
16-
17- VCPKG_HASH : 14e7bb4ae24616ec54ff6b2f6ef4e8659434ea44
18-
16+ VCPKG_HASH : 6ca56aeb457f033d344a7106cb3f9f1abf8f4e98
1917 VCPKG_DEFAULT_TRIPLET : x64-windows
2018 steps :
2119 - name : Checkout Repository
2220 uses : actions/checkout@master
2321
2422 - name : VCPKG Cache
25- uses : actions/cache@v2
23+ uses : actions/cache@v3
2624 id : vcpkg-cache
2725 with :
2826 path : ~/vcpkg
@@ -31,12 +29,20 @@ jobs:
3129 - name : Install VCPKG Dependencies
3230 if : steps.vcpkg-cache.outputs.cache-hit != 'true'
3331 run : |
32+ pushd .
3433 cd ~
3534 git clone --quiet --recursive https://github.com/microsoft/vcpkg.git
3635 cd vcpkg
3736 git checkout $env:VCPKG_HASH
3837 .\bootstrap-vcpkg.bat
39- .\vcpkg.exe install --clean-after-build boost-compute boost-math boost-stacktrace fftw3 freeimage freetype[core] forge glfw3 openblas
38+ popd
39+ mkdir build && cd build && set VCPKG_ROOT=
40+ cmake .. -G "Visual Studio 17 2022" -A x64 `
41+ -DVCPKG_ROOT:PATH=~/vcpkg `
42+ -DAF_BUILD_CUDA:BOOL=OFF -DAF_BUILD_OPENCL:BOOL=OFF `
43+ -DAF_BUILD_UNIFIED:BOOL=OFF -DAF_BUILD_FORGE:BOOL=ON `
44+ -DBUILDNAME:STRING="$buildname" `
45+ -DAF_COMPUTE_LIBRARY:STRING="FFTW/LAPACK/BLAS"
4046
4147 - name : CMake Configure
4248 run : |
4652 $buildname = if($prnum -eq $null) { $branch } else { "PR-$prnum" }
4753 $dashboard = if($prnum -eq $null) { "Continuous" } else { "Experimental" }
4854 $buildname = "$buildname-cpu-openblas"
49- mkdir build && cd build
55+ if((Test-Path build) -eq 0) {
56+ mkdir build
57+ }
58+ cd build && set VCPKG_ROOT=
5059 cmake .. -G "Visual Studio 17 2022" -A x64 `
51- -DVCPKG_MANIFEST_MODE:BOOL=OFF `
60+ -DVCPKG_ROOT:PATH=~/vcpkg `
5261 -DAF_BUILD_CUDA:BOOL=OFF -DAF_BUILD_OPENCL:BOOL=OFF `
5362 -DAF_BUILD_UNIFIED:BOOL=OFF -DAF_BUILD_FORGE:BOOL=ON `
5463 -DBUILDNAME:STRING="$buildname" `
5867 - name : Build and Test
5968 run : |
6069 cd build
61- $vcpkg_path = (Resolve-Path ~ ).Path
62- $Env:PATH += ";${vcpkg_path}/vcpkg/installed /x64-windows/bin"
70+ $build_path = (pwd ).Path
71+ $Env:PATH += ";$build_path/vcpkg_installed /x64-windows/bin"
6372 ctest -D Experimental --track ${CTEST_DASHBOARD} -T Test -T Submit -C RelWithDebInfo -R cpu -E pinverse -j2
0 commit comments