Skip to content

Commit cf31456

Browse files
committed
Update vcpkg baseline hash and update vcpkg caching in GitHub actions
1 parent 3996a4a commit cf31456

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

.github/workflows/win_cpu_build.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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: |
@@ -46,9 +52,12 @@ jobs:
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" `
@@ -58,6 +67,6 @@ jobs:
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

CMakeModules/AF_vcpkg_options.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ endif()
2929

3030
if(AF_COMPUTE_LIBRARY STREQUAL "Intel-MKL")
3131
list(APPEND VCPKG_MANIFEST_FEATURES "mkl")
32+
else()
33+
list(APPEND VCPKG_MANIFEST_FEATURES "openblasfftw")
3234
endif()
3335

3436
if(DEFINED VCPKG_ROOT AND NOT DEFINED CMAKE_TOOLCHAIN_FILE)

vcpkg.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
"glad"
4444
]
4545
},
46+
"openblasfftw": {
47+
"description": "Build with OpenBLAS/FFTW",
48+
"dependencies": [
49+
"fftw3",
50+
"openblas",
51+
"lapack"
52+
]
53+
},
4654
"cuda": {
4755
"description": "Build CUDA backend",
4856
"dependencies": [
@@ -69,5 +77,5 @@
6977
]
7078
}
7179
},
72-
"builtin-baseline": "14e7bb4ae24616ec54ff6b2f6ef4e8659434ea44"
80+
"builtin-baseline": "6ca56aeb457f033d344a7106cb3f9f1abf8f4e98"
7381
}

0 commit comments

Comments
 (0)