mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-18 21:22:54 +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:
|
||||
matrix:
|
||||
configuration:
|
||||
- Debug
|
||||
- Release
|
||||
- debug
|
||||
- release
|
||||
steps:
|
||||
- name: Check out files
|
||||
uses: actions/checkout@v2
|
||||
@ -37,27 +37,25 @@ jobs:
|
||||
- name: Setup problem matching
|
||||
uses: ammaraskar/msvc-problem-matcher@master
|
||||
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
with:
|
||||
msbuild-architecture: x64
|
||||
|
||||
- name: Setup DevCmd
|
||||
uses: ilammy/msvc-dev-cmd@v1.10.0
|
||||
with:
|
||||
arch: x64
|
||||
|
||||
- name: Setup Ninja
|
||||
uses: ashutoshvarma/setup-ninja@master
|
||||
|
||||
- name: Configure CMake
|
||||
run: cmake --preset=vs2022
|
||||
run: cmake --preset=${{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
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{matrix.configuration}} binaries
|
||||
path: |
|
||||
build/vs2022/artifacts-${{matrix.configuration}}/*.exe
|
||||
build/vs2022/artifacts-${{matrix.configuration}}/*.pdb
|
||||
build/vs2022/artifacts-${{matrix.configuration}}/*.sys
|
||||
build/${{matrix.configuration}}/artifacts/*.exe
|
||||
build/${{matrix.configuration}}/artifacts/*.pdb
|
||||
build/${{matrix.configuration}}/artifacts/*.sys
|
@ -47,14 +47,6 @@
|
||||
{
|
||||
"name": "debug",
|
||||
"configurePreset": "debug"
|
||||
},
|
||||
{
|
||||
"name": "vs2019",
|
||||
"configurePreset": "vs2019"
|
||||
},
|
||||
{
|
||||
"name": "vs2022",
|
||||
"configurePreset": "vs2022"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user