aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authoranzz1 <anzz1@live.com>2023-03-29 23:44:39 +0300
committerGitHub <noreply@github.com>2023-03-29 23:44:39 +0300
commit9cbc404ba6699a9ba4925ea25a60552b13491c7a (patch)
tree6ba6d0736ff84fdf829c238939701797a97ddb3f /.github
parentb51c717d5cf9181c33afcb84554e47f6d539c891 (diff)
ci : re-enable AVX512 testing (Windows-MSVC) (#584)
* CI: Re-enable AVX512 testing (Windows-MSVC) Now with 100% less base64 encoding * plain __cpuid is enough here
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b5cf71a..88e70e4 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -176,7 +176,13 @@ jobs:
if: ${{ matrix.build == 'avx512' }}
continue-on-error: true
run: |
- echo "TODO: check avx512f"
+ cd build
+ $vcdir = $(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath)
+ $msvc = $(join-path $vcdir $('VC\Tools\MSVC\'+$(gc -raw $(join-path $vcdir 'VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt')).Trim()))
+ $cl = $(join-path $msvc 'bin\Hostx64\x64\cl.exe')
+ echo 'int main(void){unsigned int a[4];__cpuid(a,7);return !(a[1]&65536);}' >> avx512f.c
+ & $cl /O2 /GS- /kernel avx512f.c /link /nodefaultlib /entry:main
+ .\avx512f.exe && echo "AVX512F: YES" && ( echo HAS_AVX512F=1 >> $env:GITHUB_ENV ) || echo "AVX512F: NO"
- name: Test
id: cmake_test