forked from geefr/vsgvr
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (48 loc) · 1.36 KB
/
ci-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Compile Check (Windows)
on:
push:
pull_request:
env:
CMakeVersion: 3.21.x
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
vsg-tag: [master, VulkanSceneGraph-1.0]
build-shared: [ON]
vulkan-version: [1.3.224.1]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: ${{ env.CMakeVersion }}
- name: Install Vulkan SDK
uses: humbletim/install-vulkan-sdk@v1.1.1
with:
version: ${{ matrix.vulkan-version }}
cache: true
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Checkout vsg
uses: actions/checkout@v3
with:
repository: vsg-dev/VulkanSceneGraph
ref: ${{matrix.vsg-tag}}
path: vsg
submodules: true
- name: Build and Install VSG
shell: bash
run: |
cd vsg
cmake --help
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} -A x64 -DCMAKE_INSTALL_PREFIX=../../install
MSBuild.exe INSTALL.vcxproj -p:Configuration=Release
- name: Build and Install VSGVR
shell: bash
run: |
cmake . -DBUILD_SHARED_LIBS=${{matrix.build-shared}} -A x64 -DCMAKE_INSTALL_PREFIX=../install
MSBuild.exe INSTALL.vcxproj -p:Configuration=Release