-
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (44 loc) · 1.61 KB
/
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
50
51
52
53
54
55
56
name: Windows
on:
push:
branches:
- master
- develop
pull_request:
branches: [ master ]
env:
BUILD_TYPE: Release
CMAKE_BUILD_DIR: ${{ github.workspace }}/build
jobs:
build:
name: Deploy on Windows
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install deps
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install curl
- name: Configure VKAPI Library CMake
run: |
cd ${{ github.workspace }}
mkdir build
cmake -B ${{ env.CMAKE_BUILD_DIR }} -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build VKAPI Library
run: cmake --build ${{ env.CMAKE_BUILD_DIR }} --config ${{ env.BUILD_TYPE }}
- name: Install VKAPI Library
run: cmake --build ${{ env.CMAKE_BUILD_DIR }} --target install --config ${{ env.BUILD_TYPE }}
# Configure, Build and Install WE - With Examples
- name: Configure VKAPI Library CMake WE
run: cmake -B ${{ env.CMAKE_BUILD_DIR }} -DBUILD_EXAMPLES=ON -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Build VKAPI Library WE
run: cmake --build ${{ env.CMAKE_BUILD_DIR }} --config ${{ env.BUILD_TYPE }}
- name: Install VKAPI Library WE
run: cmake --build ${{ env.CMAKE_BUILD_DIR }} --target install --config ${{ env.BUILD_TYPE }}
- name: Test
working-directory: ${{ env.CMAKE_BUILD_DIR }}
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{ env.BUILD_TYPE }}