Skip to content

Commit c2a0252

Browse files
committed
Specify platform toolset for native build.
1 parent 40fee51 commit c2a0252

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/native_build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ on: [push, pull_request]
55
jobs:
66
build:
77

8-
runs-on: ${{matrix.os-type}}
8+
runs-on: [windows-2022]
99

1010
strategy:
1111
matrix:
12-
os-type: [windows-2022]
12+
toolset: [v142, v143]
1313
configuration: [RelWithDebInfo]
1414

1515
steps:
1616
- uses: actions/checkout@v2
1717
with:
1818
submodules: true
1919
- name: Configure
20-
run: cmake -B ${{github.workspace}}/build
20+
run: cmake -B build/${{matrix.toolset}} -G "Visual Studio 17 2022" -A x64 -T ${{matrix.toolset}}
2121
- name: Build
2222
run: cmake --build ${{github.workspace}}/build --config ${{matrix.configuration}}
23+
- name: Upload
24+
uses: actions/upload-artifact@v3
25+
with:
26+
name: OcctImportJS_Win_${{matrix.toolset}}_${{matrix.configuration}}.lib
27+
path: build/${{matrix.toolset}}/${{matrix.configuration}}/occt-import-js.lib

0 commit comments

Comments
 (0)