mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-23 07:25:43 +00:00
66 lines
1.7 KiB
YAML
66 lines
1.7 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*"
|
|
pull_request:
|
|
branches:
|
|
- "*"
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build binaries
|
|
runs-on: windows-latest
|
|
strategy:
|
|
matrix:
|
|
configuration:
|
|
- debug
|
|
- release
|
|
steps:
|
|
- name: Check out files
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
fetch-depth: 0
|
|
lfs: false
|
|
|
|
- name: Add msbuild to PATH
|
|
uses: microsoft/setup-msbuild@v1.1
|
|
with:
|
|
msbuild-architecture: x64
|
|
|
|
- name: Download WDK
|
|
uses: suisei-cn/actions-download-file@v1
|
|
id: downloadfile
|
|
with:
|
|
url: "https://go.microsoft.com/fwlink/?linkid=2166289"
|
|
target: ./
|
|
|
|
- name: Install WDK
|
|
run: wdksetup.exe /features + /q
|
|
|
|
- name: Setup CMake
|
|
uses: lukka/get-cmake@latest
|
|
|
|
- name: Setup Ninja
|
|
uses: ashutoshvarma/setup-ninja@master
|
|
|
|
- name: Set up problem matching
|
|
uses: ammaraskar/msvc-problem-matcher@master
|
|
|
|
- name: Configure ${{matrix.configuration}}
|
|
run: cmake --preset=${{matrix.configuration}} -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl
|
|
|
|
- name: Build ${{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/${{matrix.configuration}}/artifacts/*.exe
|
|
build/${{matrix.configuration}}/artifacts/*.pdb
|
|
build/${{matrix.configuration}}/artifacts/*.sys |