-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (58 loc) · 2.28 KB
/
build_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
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Windows
on:
push:
paths:
- "CMakeLists.txt"
- "**/workflows/build_windows.yml"
- "**/cmake/**"
- "**/examples/**"
- "**/modules/**"
- "**/tests/**"
- "**/thirdparty/**"
- "!**/native/*_android.*"
- "!**/native/*_emscripten.*"
- "!**/native/*_linux.*"
- "!**/native/*_ios.*"
- "!**/native/*_mac.*"
- "!**/native/*_posix.*"
- "!**/native/*_wasm.*"
branches:
- "**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure
working-directory: ${{runner.workspace}}/build
run: cmake ${{ github.workspace }} -DYUP_ENABLE_TESTS=ON -DYUP_ENABLE_EXAMPLES=ON
- name: Build Debug
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . --config Debug --parallel 4 --target yup_tests
cmake --build . --config Debug --parallel 4 --target example_console
cmake --build . --config Debug --parallel 4 --target example_app
cmake --build . --config Debug --parallel 4 --target example_graphics
cmake --build . --config Debug --parallel 4 --target example_render
cmake --build . --config Debug --parallel 4 --target example_plugin
- name: Test Debug
working-directory: ${{runner.workspace}}/build/tests/Debug
run: ./yup_tests.exe
- name: Build Release
working-directory: ${{runner.workspace}}/build
run: |
cmake --build . --config Release --parallel 4 --target yup_tests
cmake --build . --config Release --parallel 4 --target example_console
cmake --build . --config Release --parallel 4 --target example_app
cmake --build . --config Release --parallel 4 --target example_graphics
cmake --build . --config Release --parallel 4 --target example_render
cmake --build . --config Release --parallel 4 --target example_plugin
- name: Test Release
working-directory: ${{runner.workspace}}/build/tests/Release
run: ./yup_tests.exe