Skip to content

Commit 034e2f2

Browse files
committed
more
1 parent 025e229 commit 034e2f2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/build-test-windows.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
contents: read # This is required for actions/checkout
4545

4646
env:
47-
BUILD_C_SHARP: ${{ matrix.os == 'windows-2022' && matrix.build_system == 'MSBuild' }}
47+
BUILD_C_SHARP: ${{ matrix.compiler_cxx == 'msvc-2022' && matrix.build_system == 'MSBuild' }}
4848
PYTEST_C_SHARP_ARGS: --run-c-sharp-samples --csharp-sample-dir=..\source\x64\${{ matrix.config }}
4949

5050
steps:
@@ -69,7 +69,7 @@ jobs:
6969
with:
7070
target_os: windows
7171
target_arch: x64
72-
cxx_compiler: ${{ matrix.os }} # os name will be transformed to MSVC name (e.g. windows-2022 -> msvc-2022)
72+
cxx_compiler: ${{ matrix.cxx_compiler }}
7373
build_config: ${{ matrix.config }}
7474
build_system: ${{ matrix.build_system }}
7575
aws_instance_type: ${{ env.AWS_INSTANCE_TYPE }}
@@ -112,19 +112,19 @@ jobs:
112112
run: C:\vcpkg\vcpkg.exe integrate install
113113

114114
- name: Restore CUDA Cache
115-
if: ${{ matrix.os == 'windows-2022' }}
115+
# if: ${{ matrix.os == 'windows-2022' }}
116116
uses: actions/cache@v4
117117
id: cuda-cache
118118
with:
119119
key: cuda-${{matrix.CUDA-VERSION}}
120120
path: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA*
121121

122122
- name: Install CUDA
123-
if: ${{ steps.cuda-cache.outputs.cache-hit != 'true' && matrix.os == 'windows-2022' }}
123+
if: ${{ steps.cuda-cache.outputs.cache-hit != 'true' }}
124124
run: choco install cuda --version=${{matrix.CUDA-VERSION}} --confirm
125125

126126
- name: Setup CUDA
127-
if: ${{ matrix.os == 'windows-2022' }}
127+
# if: ${{ matrix.os == 'windows-2022' }}
128128
shell: bash
129129
run: |
130130
echo "CUDA_PATH=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v${{ matrix.CUDA-MAJOR }}.${{ matrix.CUDA-MINOR }}" >> $GITHUB_ENV
@@ -133,7 +133,7 @@ jobs:
133133
echo "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v${{ matrix.CUDA-MAJOR }}.${{ matrix.CUDA-MINOR }}\\bin" >> $GITHUB_PATH
134134
135135
- name: Install Visual Studio Integration
136-
if: ${{ matrix.os == 'windows-2022' }}
136+
# if: ${{ matrix.os == 'windows-2022' }}
137137
run: |
138138
$x = (dir $env:CUDA_PATH -dir -recurse -depth 2).where({$_.name -eq 'visual_studio_integration'}).fullname
139139
$y = (dir $x -dir -recurse).where({$_.name -eq 'MSBuildExtensions'}).fullname + '\*'
@@ -207,7 +207,7 @@ jobs:
207207
if errorlevel 1 exit 1
208208
cmake --version
209209
if errorlevel 1 exit 1
210-
cmake -B source\TempOutput -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}} -DMESHLIB_BUILD_GENERATED_C_BINDINGS=${{ fromJSON('["OFF", "ON"]')[inputs.mrbind_c] }}
210+
cmake -B source\TempOutput -GNinja -DCMAKE_BUILD_TYPE=${{matrix.config}} -DMESHLIB_BUILD_GENERATED_C_BINDINGS=${{ fromJSON('["OFF", "ON"]')[inputs.mrbind_c] -DCMAKE_GENERATOR_TOOLSET=v142 }}
211211
if errorlevel 1 exit 1
212212
cmake --build source\TempOutput -j
213213
if errorlevel 1 exit 1

.github/workflows/matrix/windows-minimal-config.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"include": [
33
{
4+
"cxx_compiler": "msvc-2019",
45
"os": "windows-2019",
56
"runner": ["windows-2022"],
67
"config": "Debug",
@@ -12,6 +13,7 @@
1213
"vcpkg-version": "__VCPKG_VERSION_VS19__"
1314
},
1415
{
16+
"cxx_compiler": "msvc-2019",
1517
"os": "windows-2019",
1618
"runner": ["windows-2022"],
1719
"config": "Debug",

0 commit comments

Comments
 (0)