Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 619767f

Browse files
committed
Initialize visual studio variables in Windows CI
1 parent abf7e99 commit 619767f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-windows.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
cuda_compiler_version:
1212
type: string
1313

14-
1514
outputs:
1615
cache-suffix:
1716
value: ${{ jobs.build.outputs.cache-suffix }}
@@ -76,6 +75,10 @@ jobs:
7675

7776
- name: Configure and build
7877
run: |
78+
$vswhere = "$(${env:ProgramFiles(x86)})\Microsoft Visual Studio\Installer\vswhere.exe"
79+
$path = & $vswhere -property installationPath
80+
& $path\VC\Auxiliary\Build\vcvarsall.bat x64
81+
$env:VSINSTALLDIR = $path
7982
& $env:CONDA\condabin\conda.bat info
8083
& $env:CONDA\condabin\conda.bat list -n omnisci-dev
8184
& $env:CONDA\condabin\conda.bat run --no-capture-output -n omnisci-dev omniscidb\scripts\conda\build.bat ${{ inputs.options }}
@@ -96,4 +99,3 @@ jobs:
9699
build/*.log
97100
build/CMakeCache.txt
98101
build/CMakeFiles/*.log
99-

0 commit comments

Comments
 (0)