File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build code
2+
3+ on :
4+ push :
5+ pull_request :
6+ types : [opened, synchronize, reopened]
7+
8+ env :
9+ FOO : " BAR"
10+
11+ jobs :
12+ windows :
13+ name : ${{ matrix.config.name }}
14+ runs-on : windows-latest
15+ strategy :
16+ fail-fast : false
17+ matrix :
18+ config :
19+ - {
20+ name : " Windows MSVC (Debug)" ,
21+ compiler : " msvc" ,
22+ cc : " cl" , cxx: "cl",
23+ cmake_configure_options : ' -G "Visual Studio 17 2022" -A x64' ,
24+ build_type : " Debug" ,
25+ }
26+ # - {
27+ # name: "Windows MSVC (Release)",
28+ # compiler: "msvc",
29+ # cc: "cl", cxx: "cl",
30+ # cmake_configure_options: '-G "Visual Studio 17 2022" -A x64',
31+ # build_type: "Release",
32+ # }
33+
34+ steps :
35+ - name : Checkout
36+ uses : actions/checkout@v4
37+
38+ - name : Configure CMake
39+ shell : pwsh
40+ run : |
41+ $env:CC="${{ matrix.config.cc }}"
42+ $env:CXX="${{ matrix.config.cxx }}"
43+ cmake . `
44+ -Bbuild `
45+ -DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} `
46+ -DD3D12MA_BUILD_SAMPLE=ON `
47+ ${{ matrix.config.cmake_configure_options }}
48+
49+ - name : Build
50+ shell : pwsh
51+ run : |
52+ cmake --build build --config ${{ matrix.config.build_type }}
You can’t perform that action at this time.
0 commit comments