mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-20 05:55:44 +00:00
Build using visual studio
This commit is contained in:
parent
66af09fa78
commit
2cfe71f783
21
.github/workflows/build.yml
vendored
21
.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
|
||||||
@ -34,28 +34,25 @@ jobs:
|
|||||||
- name: Setup CMake
|
- name: Setup CMake
|
||||||
uses: lukka/get-cmake@latest
|
uses: lukka/get-cmake@latest
|
||||||
|
|
||||||
- name: Setup Ninja
|
|
||||||
uses: ashutoshvarma/setup-ninja@master
|
|
||||||
|
|
||||||
- name: Set up problem matching
|
- name: Set up problem matching
|
||||||
uses: ammaraskar/msvc-problem-matcher@master
|
uses: ammaraskar/msvc-problem-matcher@master
|
||||||
|
|
||||||
- name: Stup 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: Configure ${{matrix.configuration}}
|
- name: Configure CMake
|
||||||
run: cmake --preset=${{matrix.configuration}} -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl
|
run: cmake --preset=vs2019
|
||||||
|
|
||||||
- name: Build ${{matrix.configuration}}
|
- name: Build ${{matrix.configuration}}
|
||||||
run: cmake --build --preset=${{matrix.configuration}}
|
run: cmake --build --preset=vs2019 --config ${{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/${{matrix.configuration}}/artifacts/*.exe
|
build/vs2019/artifacts-${{matrix.configuration}}/*.exe
|
||||||
build/${{matrix.configuration}}/artifacts/*.pdb
|
build/vs2019/artifacts-${{matrix.configuration}}/*.pdb
|
||||||
build/${{matrix.configuration}}/artifacts/*.sys
|
build/vs2019/artifacts-${{matrix.configuration}}/*.sys
|
Loading…
x
Reference in New Issue
Block a user