From 036684204e01a28bd8056a8c63c91948f3c39006 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sun, 21 May 2023 17:07:31 +0200 Subject: Github Actions Windows builds with tests (#472) * Set CMake CMP0074 policy * Attempt to use pre-compiled OpenBLAS on Windows CI * Fix an issue and add some debugging * Improve FindCBLAS for OpenBLAS on Windows --- .github/workflows/build_and_test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.github') diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2d74ed24..e1f59a0e 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -75,13 +75,19 @@ jobs: uses: ilammy/msvc-dev-cmd@v1 - name: Install OpenBLAS - run: vcpkg.exe --triplet=${{ matrix.config.arch }}-windows install openblas + run: | + mkdir openblas + cd openblas + C:\msys64\usr\bin\wget.exe https://github.com/xianyi/OpenBLAS/releases/download/v0.3.23/OpenBLAS-0.3.23-x64.zip + 7z x OpenBLAS-0.3.23-x64.zip + pwd + ls - name: Install OpenCL run: vcpkg.exe --triplet=${{ matrix.config.arch }}-windows install opencl - name: Run CMake - run: cmake -S . -B build -DTESTS=ON -DCLIENTS=ON -DSAMPLES=ON -DOPENCL_ROOT=C:/vcpkg/packages/opencl_x64-windows -DCBLAS_ROOT=C:/vcpkg/packages/openblas_x64-windows + run: cmake -S . -B build -DTESTS=ON -DCLIENTS=ON -DSAMPLES=ON -DOPENCL_ROOT=C:\vcpkg\packages\opencl_x64-windows -DCBLAS_ROOT=${{ github.workspace }}\openblas - name: Compile the code run: cmake --build build -- cgit v1.2.3