mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 05:32:55 +00:00
Use ninja
This commit is contained in:
parent
75e6abe9d5
commit
c71541bdbb
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@ -16,8 +16,8 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
configuration:
|
configuration:
|
||||||
- Debug
|
- debug
|
||||||
- Release
|
- release
|
||||||
steps:
|
steps:
|
||||||
- name: Check out files
|
- name: Check out files
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -37,27 +37,25 @@ jobs:
|
|||||||
- name: Setup problem matching
|
- name: Setup problem matching
|
||||||
uses: ammaraskar/msvc-problem-matcher@master
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
- name: Add msbuild to PATH
|
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
|
||||||
with:
|
|
||||||
msbuild-architecture: x64
|
|
||||||
|
|
||||||
- name: Setup DevCmd
|
- name: Setup DevCmd
|
||||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
uses: ilammy/msvc-dev-cmd@v1.10.0
|
||||||
with:
|
with:
|
||||||
arch: x64
|
arch: x64
|
||||||
|
|
||||||
|
- name: Setup Ninja
|
||||||
|
uses: ashutoshvarma/setup-ninja@master
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: cmake --preset=vs2022
|
run: cmake --preset=${{matrix.configuration}}
|
||||||
|
|
||||||
- name: Build ${{matrix.configuration}}
|
- name: Build ${{matrix.configuration}}
|
||||||
run: cmake --build --preset=vs2022 --config ${{matrix.configuration}}
|
run: cmake --build --preset=${{matrix.configuration}}
|
||||||
|
|
||||||
- name: Upload ${{matrix.configuration}} binaries
|
- name: Upload ${{matrix.configuration}} binaries
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{matrix.configuration}} binaries
|
name: ${{matrix.configuration}} binaries
|
||||||
path: |
|
path: |
|
||||||
build/vs2022/artifacts-${{matrix.configuration}}/*.exe
|
build/${{matrix.configuration}}/artifacts/*.exe
|
||||||
build/vs2022/artifacts-${{matrix.configuration}}/*.pdb
|
build/${{matrix.configuration}}/artifacts/*.pdb
|
||||||
build/vs2022/artifacts-${{matrix.configuration}}/*.sys
|
build/${{matrix.configuration}}/artifacts/*.sys
|
@ -47,14 +47,6 @@
|
|||||||
{
|
{
|
||||||
"name": "debug",
|
"name": "debug",
|
||||||
"configurePreset": "debug"
|
"configurePreset": "debug"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vs2019",
|
|
||||||
"configurePreset": "vs2019"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "vs2022",
|
|
||||||
"configurePreset": "vs2022"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user