-
-
Notifications
You must be signed in to change notification settings - Fork 31
79 lines (73 loc) · 2.77 KB
/
Copy pathEngine-CI.yml
File metadata and controls
79 lines (73 loc) · 2.77 KB
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
70
71
72
73
74
75
76
77
78
79
name: Engine CI
on:
push:
branches: [ main, develop ]
paths:
- 'ZEngine/**'
- 'Tetragrama/**'
- 'Obelisk/**'
- 'Resources/**'
- 'Scripts/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'dependencies.cmake'
- '.github/workflows/**'
pull_request:
branches: [ main, develop ]
paths:
- 'ZEngine/**'
- 'Tetragrama/**'
- 'Obelisk/**'
- 'Resources/**'
- 'Scripts/**'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'dependencies.cmake'
- '.github/workflows/**'
workflow_dispatch:
inputs:
run_debug:
description: 'Build and test Debug'
type: boolean
default: true
run_release:
description: 'Build and test Release'
type: boolean
default: false
run_deploy:
description: 'Deploy artifacts'
type: boolean
default: false
jobs:
commitlint:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/job-commitlint.yml
clang-format:
uses: ./.github/workflows/job-clangformat.yml
windows:
needs: [commitlint, clang-format]
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/windows-build.yml
with:
targetFramework: net10.0
run_debug: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_debug)) }}
run_release: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_release)) }}
run_deploy: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_deploy)) }}
macOS:
needs: [commitlint, clang-format]
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/macOS-build.yml
with:
targetFramework: net10.0
run_debug: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_debug)) }}
run_release: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_release)) }}
run_deploy: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_deploy)) }}
linux:
needs: [commitlint, clang-format]
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/linux-build.yml
with:
targetFramework: net10.0
run_debug: ${{ github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_debug)) }}
run_release: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_release)) }}
run_deploy: ${{ github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && fromJSON(inputs.run_deploy)) }}