-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (30 loc) · 1.03 KB
/
cmake.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
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build ${{ matrix.type }} version for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
type: ['Debug', 'Release']
os: [windows-latest]
steps:
- uses: actions/checkout@v3
with:
submodules: true
# third-party
- name: Configure vendor
run: cmake -S ${{github.workspace}}\Engine\vendor -B ${{github.workspace}}\build_vendor -A x64 -DFT_DISABLE_ZLIB=ON -DFT_DISABLE_BZIP2=ON -DFT_DISABLE_PNG=ON -DFT_DISABLE_HARFBUZZ=ON -DFT_DISABLE_BROTLI=ON
- name: Build vendor
run: |
cmake --build ${{github.workspace}}\build_vendor --config Debug
cmake --build ${{github.workspace}}\build_vendor --config Release
# engine and projects
- name: Configure engine and projects
run: cmake -B ${{github.workspace}}/build
- name: Build engine and projects
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.type }}