forked from TheSuperHackers/GeneralsGameCode
-
Notifications
You must be signed in to change notification settings - Fork 17
145 lines (137 loc) Β· 4.47 KB
/
Copy pathci.yml
File metadata and controls
145 lines (137 loc) Β· 4.47 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: GenCI
permissions:
contents: read
pull-requests: write
on:
push:
branches:
[main, develop, citest, 60hz]
pull_request:
branches:
[main, develop]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
detect-changes:
name: Detect File Changes
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
generals: ${{ steps.filter.outputs.generals }}
generalsmd: ${{ steps.filter.outputs.generalsmd }}
shared: ${{ steps.filter.outputs.shared }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Filter Changed Paths
uses: dorny/paths-filter@v3
id: filter
with:
token: ''
filters: |
generals:
- 'Generals/**'
generalsmd:
- 'GeneralsMD/**'
shared:
- '.github/workflows/build-toolchain.yml'
- '.github/workflows/ci.yml'
- 'CMakeLists.txt'
- 'CMakePresets.json'
- 'cmake/**'
- 'Core/**'
- 'Dependencies/**'
- name: Changes Summary
run: |
echo "### π File Changes Summary" >> $GITHUB_STEP_SUMMARY
echo "- Generals: ${{ steps.filter.outputs.generals == 'true' && 'β
' || 'β' }}" >> $GITHUB_STEP_SUMMARY
echo "- GeneralsMD: ${{ steps.filter.outputs.generalsmd == 'true' && 'β
' || 'β' }}" >> $GITHUB_STEP_SUMMARY
echo "- Shared: ${{ steps.filter.outputs.shared == 'true' && 'β
' || 'β' }}" >> $GITHUB_STEP_SUMMARY
# build-generals:
# name: Build Generals${{ matrix.preset && '' }}
# needs: detect-changes
# if: ${{ github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.generals == 'true' || needs.detect-changes.outputs.shared == 'true' }}
# strategy:
# matrix:
# include:
# - preset: "vc6"
# tools: true
# extras: true
# - preset: "vc6-profile"
# tools: true
# extras: true
# - preset: "vc6-debug"
# tools: true
# extras: true
# - preset: "win32"
# tools: true
# extras: true
# - preset: "win32-profile"
# tools: true
# extras: true
# - preset: "win32-debug"
# tools: true
# extras: true
# # vcpkg builds have been disabled for now due to excessive build times of 30 minutes per preset
# # - preset: "win32-vcpkg"
# # tools: true
# # extras: true
# # - preset: "win32-vcpkg-profile"
# # tools: true
# # extras: true
# # - preset: "win32-vcpkg-debug"
# # tools: true
# # extras: true
# fail-fast: false
# uses: ./.github/workflows/build-toolchain.yml
# with:
# game: "Generals"
# preset: ${{ matrix.preset }}
# tools: ${{ matrix.tools }}
# extras: ${{ matrix.extras }}
# secrets: inherit
build-generalsmd:
name: Build GeneralsMD${{ matrix.preset && '' }}
needs: detect-changes
if: ${{ github.event_name == 'workflow_dispatch' || needs.detect-changes.outputs.generalsmd == 'true' || needs.detect-changes.outputs.shared == 'true' }}
strategy:
matrix:
include:
# - preset: "vc6"
# tools: true
# extras: true
# - preset: "vc6-profile"
# tools: true
# extras: true
# - preset: "vc6-debug"
# tools: true
# extras: true
- preset: "win32"
tools: false
extras: true
- preset: "win32-profile"
tools: false
extras: true
- preset: "win32-debug"
tools: false
extras: true
# vcpkg builds have been disabled for now due to excessive build times of 30 minutes per preset
# - preset: "win32-vcpkg"
# tools: true
# extras: true
# - preset: "win32-vcpkg-profile"
# tools: true
# extras: true
# - preset: "win32-vcpkg-debug"
# tools: true
# extras: true
fail-fast: false
uses: ./.github/workflows/build-toolchain.yml
with:
game: "GeneralsMD"
preset: ${{ matrix.preset }}
tools: ${{ matrix.tools }}
extras: ${{ matrix.extras }}
secrets: inherit