Skip to content

Commit fb7e45b

Browse files
Accepted all upstream changes
2 parents 4fdff27 + 476a57c commit fb7e45b

2,678 files changed

Lines changed: 38269 additions & 100395 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-historical.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
release_tag: ${{ steps.info.outputs.release_tag }}
4949
steps:
5050
- name: Checkout Code
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252
with:
5353
fetch-depth: 0
5454
fetch-tags: true
@@ -97,7 +97,7 @@ jobs:
9797

9898
steps:
9999
- name: Checkout Target Commit
100-
uses: actions/checkout@v4
100+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
101101
with:
102102
ref: ${{ github.event.inputs.commit }}
103103
fetch-depth: 0
@@ -136,7 +136,7 @@ jobs:
136136
137137
- name: Cache VC6 Installation
138138
id: cache-vc6
139-
uses: actions/cache@v4
139+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
140140
with:
141141
path: C:\VC6
142142
key: vc6-permanent-cache-v2
@@ -204,7 +204,7 @@ jobs:
204204
$files | Move-Item -Destination $artifactsDir -Force
205205
206206
- name: Upload Artifact
207-
uses: actions/upload-artifact@v4
207+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
208208
with:
209209
name: ${{ matrix.game }}-vc6-${{ needs.prepare.outputs.short_sha }}
210210
path: build\vc6\${{ matrix.game }}\artifacts
@@ -218,14 +218,14 @@ jobs:
218218
steps:
219219
- name: Download Generals Artifact
220220
if: ${{ github.event.inputs.game == 'Generals' || github.event.inputs.game == 'Both' }}
221-
uses: actions/download-artifact@v4
221+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
222222
with:
223223
name: Generals-vc6-${{ needs.prepare.outputs.short_sha }}
224224
path: generals-artifacts
225225

226226
- name: Download GeneralsMD Artifact
227227
if: ${{ github.event.inputs.game == 'GeneralsMD' || github.event.inputs.game == 'Both' }}
228-
uses: actions/download-artifact@v4
228+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
229229
with:
230230
name: GeneralsMD-vc6-${{ needs.prepare.outputs.short_sha }}
231231
path: generalsmd-artifacts
@@ -264,7 +264,7 @@ jobs:
264264
echo "EOF" >> $GITHUB_OUTPUT
265265
266266
- name: Create GitHub Release
267-
uses: softprops/action-gh-release@v2
267+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
268268
with:
269269
tag_name: ${{ needs.prepare.outputs.release_tag }}
270270
name: ${{ needs.prepare.outputs.release_tag }}

.github/workflows/build-toolchain.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ jobs:
3939

4040
steps:
4141
- name: Checkout Code
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4343

4444
- name: Cache VC6 Installation
4545
if: startsWith(inputs.preset, 'vc6')
4646
id: cache-vc6
47-
uses: actions/cache@v4
47+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4848
with:
4949
path: C:\VC6
5050
key: vc6-permanent-cache-v2
5151

5252
- name: Cache CMake Dependencies
5353
id: cache-cmake-deps
54-
uses: actions/cache@v4
54+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
5555
with:
5656
path: build\${{ inputs.preset }}\_deps
5757
key: cmake-deps-${{ inputs.preset }}-${{ hashFiles('CMakePresets.json','cmake/**/*.cmake','**/CMakeLists.txt') }}
@@ -101,7 +101,7 @@ jobs:
101101
102102
- name: Set Up VC2022 Environment
103103
if: startsWith(inputs.preset, 'win32')
104-
uses: ilammy/msvc-dev-cmd@v1
104+
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
105105
with:
106106
arch: x86
107107

@@ -112,34 +112,27 @@ jobs:
112112
run: |
113113
$baseline = (Get-Content vcpkg.json | ConvertFrom-Json)."builtin-baseline"
114114
115-
$msvc = $env:VCToolsVersion
116-
if (-not $msvc) { $msvc = "unknown" }
117-
118-
# Reduce churn: keep major.minor (e.g. 14.44)
119-
$msvcMajorMinor = ($msvc -split '\.')[0..1] -join '.'
120-
121115
$triplet = "x86-windows"
122116
if ("${{ inputs.preset }}" -like "x64*") { $triplet = "x64-windows" }
123117
124118
"baseline=$baseline" >> $env:GITHUB_OUTPUT
125-
"msvc=$msvcMajorMinor" >> $env:GITHUB_OUTPUT
126119
"triplet=$triplet" >> $env:GITHUB_OUTPUT
127120
128-
Write-Host "vcpkg cache key parts: baseline=$baseline, msvc=$msvcMajorMinor, triplet=$triplet"
121+
Write-Host "vcpkg cache key parts: baseline=$baseline, triplet=$triplet"
129122
130123
- name: Restore vcpkg binary cache
131124
if: startsWith(inputs.preset, 'win32')
132125
id: vcpkg_cache
133-
uses: actions/cache/restore@v4
126+
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
134127
with:
135128
path: ${{ github.workspace }}\vcpkg-bincache
136-
key: vcpkg-bincache-v2-${{ runner.os }}-msvc${{ steps.vcpkg_key.outputs.msvc }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}
129+
key: vcpkg-bincache-v3-${{ runner.os }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}-${{ hashFiles('triplets/*.cmake') }}
137130
restore-keys: |
138-
vcpkg-bincache-v2-${{ runner.os }}-msvc${{ steps.vcpkg_key.outputs.msvc }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-
139-
vcpkg-bincache-v2-${{ runner.os }}-
131+
vcpkg-bincache-v3-${{ runner.os }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-
132+
vcpkg-bincache-v3-${{ runner.os }}-
140133
141134
- name: Setup vcpkg
142-
uses: lukka/run-vcpkg@v11
135+
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
143136
with:
144137
runVcpkgInstall: false
145138
doNotCache: true
@@ -157,6 +150,8 @@ jobs:
157150
158151
"VCPKG_DEFAULT_BINARY_CACHE=$cacheDir" >> $env:GITHUB_ENV
159152
"VCPKG_BINARY_SOURCES=$env:VCPKG_BINARY_SOURCES" >> $env:GITHUB_ENV
153+
"VCPKG_OVERLAY_TRIPLETS=${{ github.workspace }}\triplets" >> $env:GITHUB_ENV
154+
"VCPKG_INSTALL_OPTIONS=--x-abi-tools-use-exact-versions" >> $env:GITHUB_ENV
160155
161156
- name: Configure ${{ inputs.game }} with CMake Using ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Preset
162157
shell: pwsh
@@ -183,10 +178,10 @@ jobs:
183178
- name: Save vcpkg binary cache
184179
# Only one job should save to avoid "Unable to reserve cache" conflicts.
185180
if: ${{ startsWith(inputs.preset, 'win32') && steps.vcpkg_cache.outputs.cache-hit != 'true' && inputs.game == 'Generals' && inputs.preset == 'win32-vcpkg-debug' }}
186-
uses: actions/cache/save@v4
181+
uses: actions/cache/save@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
187182
with:
188183
path: ${{ github.workspace }}\vcpkg-bincache
189-
key: vcpkg-bincache-v2-${{ runner.os }}-msvc${{ steps.vcpkg_key.outputs.msvc }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}
184+
key: vcpkg-bincache-v3-${{ runner.os }}-baseline${{ steps.vcpkg_key.outputs.baseline }}-${{ steps.vcpkg_key.outputs.triplet }}-${{ hashFiles('triplets/*.cmake') }}
190185

191186
- name: Collect ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
192187
shell: pwsh
@@ -206,7 +201,7 @@ jobs:
206201
$files | Move-Item -Destination $artifactsDir -Verbose -Force
207202
208203
- name: Upload ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
209-
uses: actions/upload-artifact@v4
204+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
210205
with:
211206
name: ${{ inputs.game }}-${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }}
212207
path: build\${{ inputs.preset }}\${{ inputs.game }}\artifacts

.github/workflows/check-replays.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ jobs:
3131
GENERALSMD_PATH: C:\GameData\GeneralsMD
3232
steps:
3333
- name: Checkout Code
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3535
with:
3636
submodules: true
3737

3838
- name: Download Game Artifact
39-
uses: actions/download-artifact@v4
39+
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
4040
with:
4141
name: ${{ inputs.game }}-${{ inputs.preset }}
4242
path: build
4343

4444
- name: Cache Game Data
4545
id: cache-gamedata
46-
uses: actions/cache@v4
46+
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
4747
with:
4848
path: ${{ env.GAME_PATH }}
4949
key: gamedata-permanent-cache-v4
@@ -234,7 +234,7 @@ jobs:
234234
235235
- name: Upload Debug Log
236236
if: always()
237-
uses: actions/upload-artifact@v4
237+
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
238238
with:
239239
name: Replay-Debug-Log-${{ inputs.preset }}
240240
path: build/DebugLogFile*.txt

.github/workflows/ci.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
shared: ${{ steps.filter.outputs.shared }}
2929
steps:
3030
- name: Checkout Code
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232

3333
- name: Filter Changed Paths
34-
uses: dorny/paths-filter@v3
34+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
3535
id: filter
3636
with:
3737
token: ''
@@ -80,15 +80,15 @@ jobs:
8080
- preset: "win32-debug"
8181
tools: true
8282
extras: true
83-
- preset: "win32-vcpkg"
84-
tools: true
85-
extras: true
86-
- preset: "win32-vcpkg-profile"
87-
tools: true
88-
extras: true
89-
- preset: "win32-vcpkg-debug"
90-
tools: true
91-
extras: true
83+
#- preset: "win32-vcpkg"
84+
# tools: true
85+
# extras: true
86+
#- preset: "win32-vcpkg-profile"
87+
# tools: true
88+
# extras: true
89+
#- preset: "win32-vcpkg-debug"
90+
# tools: true
91+
# extras: true
9292
fail-fast: false
9393
uses: ./.github/workflows/build-toolchain.yml
9494
with:
@@ -144,15 +144,15 @@ jobs:
144144
- preset: "win32-debug"
145145
tools: true
146146
extras: true
147-
- preset: "win32-vcpkg"
148-
tools: true
149-
extras: true
150-
- preset: "win32-vcpkg-profile"
151-
tools: true
152-
extras: true
153-
- preset: "win32-vcpkg-debug"
154-
tools: true
155-
extras: true
147+
#- preset: "win32-vcpkg"
148+
# tools: true
149+
# extras: true
150+
#- preset: "win32-vcpkg-profile"
151+
# tools: true
152+
# extras: true
153+
#- preset: "win32-vcpkg-debug"
154+
# tools: true
155+
# extras: true
156156
fail-fast: false
157157
uses: ./.github/workflows/build-toolchain.yml
158158
with:

.github/workflows/valid-tags.txt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
[GEN]
2-
[ZH]
3-
[BFME]
4-
[CMAKE]
5-
[GITHUB]
6-
[CORE]
7-
[LINUX]
1+
bugfix
2+
build
3+
chore
4+
ci
5+
docs
6+
fix
7+
feat
8+
perf
9+
refactor
10+
revert
11+
style
12+
test
13+
tweak
14+
unify

0 commit comments

Comments
 (0)