Skip to content

Commit 3485ab1

Browse files
committed
[GITHUB] Update CI to match new presets
1 parent 1589c55 commit 3485ab1

File tree

2 files changed

+40
-39
lines changed

2 files changed

+40
-39
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
required: true
1616
type: string
1717
description: "CMake preset"
18+
configuration:
19+
required: true
20+
type: string
21+
description: "CMake build configuration (Debug, Release, RelWithDebInfo, etc)"
1822
tools:
1923
required: false
2024
default: true
@@ -51,7 +55,7 @@ jobs:
5155
key: cmake-deps-${{ inputs.preset }}-${{ hashFiles('CMakePresets.json','cmake/**/*.cmake','**/CMakeLists.txt') }}
5256

5357
- name: Download VC6 Portable from Cloudflare R2
54-
if: ${{ startsWith(inputs.preset, 'vc6') && steps.cache-vc6.outputs.cache-hit != 'true' }}
58+
if: ${{ endsWith(inputs.preset, 'vc6') && steps.cache-vc6.outputs.cache-hit != 'true' }}
5559
env:
5660
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
5761
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
@@ -95,13 +99,13 @@ jobs:
9599
"LIB=$MSVCDir\LIB;$MSVCDir\MFC\LIB;$env:LIB" >> $env:GITHUB_ENV
96100
97101
- name: Set Up VC2022 Environment
98-
if: startsWith(inputs.preset, 'win32')
102+
if: ${{ !endsWith(inputs.preset, 'vc6') }}
99103
uses: ilammy/msvc-dev-cmd@v1
100104
with:
101105
arch: x86
102106

103-
- name: Setup vcpkg
104-
uses: lukka/run-vcpkg@v11
107+
#- name: Setup vcpkg
108+
# uses: lukka/run-vcpkg@v11
105109

106110
- name: Configure ${{ inputs.game }} with CMake Using ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Preset
107111
shell: pwsh
@@ -124,7 +128,7 @@ jobs:
124128
- name: Build ${{ inputs.game }} with CMake Using ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Preset
125129
shell: pwsh
126130
run: |
127-
cmake --build --preset ${{ inputs.preset }}
131+
cmake --build --preset ${{ inputs.preset }} --config ${{ inputs.configuration }}
128132
129133
- name: Collect ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
130134
shell: pwsh

.github/workflows/ci.yml

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -63,41 +63,39 @@ jobs:
6363
strategy:
6464
matrix:
6565
include:
66-
- preset: "vc6"
66+
# ninja preset
67+
- preset: "ninja"
6768
tools: true
6869
extras: true
69-
- preset: "vc6-profile"
70+
configuration: "Debug"
71+
- preset: "ninja"
7072
tools: true
7173
extras: true
72-
- preset: "vc6-debug"
74+
configuration: "Release"
75+
- preset: "ninja"
7376
tools: true
7477
extras: true
75-
- preset: "win32"
78+
configuration: "RelWithDebInfo"
79+
# ninja-vc6 preset
80+
- preset: "ninja-vc6"
7681
tools: true
7782
extras: true
78-
- preset: "win32-profile"
83+
configuration: "Debug"
84+
- preset: "ninja-vc6"
7985
tools: true
8086
extras: true
81-
- preset: "win32-debug"
87+
configuration: "Release"
88+
- preset: "ninja-vc6"
8289
tools: true
8390
extras: true
84-
# vcpkg builds have been disabled for now due to excessive build times of 30 minutes per preset
85-
# - preset: "win32-vcpkg"
86-
# tools: true
87-
# extras: true
88-
# - preset: "win32-vcpkg-profile"
89-
# tools: true
90-
# extras: true
91-
# - preset: "win32-vcpkg-debug"
92-
# tools: true
93-
# extras: true
94-
fail-fast: false
91+
configuration: "RelWithDebInfo"
9592
uses: ./.github/workflows/build-toolchain.yml
9693
with:
9794
game: "Generals"
9895
preset: ${{ matrix.preset }}
9996
tools: ${{ matrix.tools }}
10097
extras: ${{ matrix.extras }}
98+
configuration: ${{ matrix.configuration }}
10199
secrets: inherit
102100

103101
build-generalsmd:
@@ -107,39 +105,38 @@ jobs:
107105
strategy:
108106
matrix:
109107
include:
110-
- preset: "vc6"
108+
# ninja preset
109+
- preset: "ninja"
111110
tools: true
112111
extras: true
113-
- preset: "vc6-profile"
112+
configuration: "Debug"
113+
- preset: "ninja"
114114
tools: true
115115
extras: true
116-
- preset: "vc6-debug"
116+
configuration: "Release"
117+
- preset: "ninja"
117118
tools: true
118119
extras: true
119-
- preset: "win32"
120+
configuration: "RelWithDebInfo"
121+
# ninja-vc6 preset
122+
- preset: "ninja-vc6"
120123
tools: true
121124
extras: true
122-
- preset: "win32-profile"
125+
configuration: "Debug"
126+
- preset: "ninja-vc6"
123127
tools: true
124128
extras: true
125-
- preset: "win32-debug"
129+
configuration: "Release"
130+
- preset: "ninja-vc6"
126131
tools: true
127132
extras: true
128-
# vcpkg builds have been disabled for now due to excessive build times of 30 minutes per preset
129-
# - preset: "win32-vcpkg"
130-
# tools: true
131-
# extras: true
132-
# - preset: "win32-vcpkg-profile"
133-
# tools: true
134-
# extras: true
135-
# - preset: "win32-vcpkg-debug"
136-
# tools: true
137-
# extras: true
133+
configuration: "RelWithDebInfo"
138134
fail-fast: false
139135
uses: ./.github/workflows/build-toolchain.yml
140136
with:
141-
game: "GeneralsMD"
137+
game: "Generals"
142138
preset: ${{ matrix.preset }}
143139
tools: ${{ matrix.tools }}
144140
extras: ${{ matrix.extras }}
141+
configuration: ${{ matrix.configuration }}
145142
secrets: inherit

0 commit comments

Comments
 (0)