generated from Rythe-Interactive/Rythe-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.58 KB
/
build.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
# GH Action: Build
# Clones Rythe-Engine, but changes the submodule hash to {{ github.sha }}
name: build
on: [push, pull_request]
jobs:
build:
name: "${{ matrix.platform }} (${{ matrix.type }}) (${{ matrix.compiler }})"
strategy:
fail-fast: false
matrix:
type: [Debug, Release]
platform: [windows-2019]
compiler: [clang++]
include:
# MSVC + Clang requires setting the cmake toolset to "-T ClangCL"
- platform: windows-2019
compiler: clang++
toolset: -T ClangCL
# Runner platform
runs-on: ${{ matrix.platform }}
steps:
- name: Clone Rythe-Engine
run: git clone --branch develop https://github.com/Rythe-Interactive/Rythe-Engine.git
- name: Update submodule
working-directory: Rythe-Engine
run: git submodule update --init rythe/engine/application
- name: Change submodule commit
working-directory: Rythe-Engine/rythe/engine/application
run: git checkout ${{ github.sha }}
- name: Create Build Environment
run: cmake -E make_directory Rythe-Engine/build
- name: Configure CMake
shell: bash
working-directory: Rythe-Engine/build
run: cmake ../
${{ matrix.toolset }}
-DCMAKE_CXX_COMPILER=${{ matrix.compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.type }}
-DRYTHE_BUILD_APPLICATIONS=ON
-DRYTHE_BUILD_OPTION_ASAN=ON
-DRYTHE_MODULE_APPLICATION=ON
- name: Build all
working-directory: Rythe-Engine/build
shell: bash
run: cmake --build . --config ${{ matrix.type }}