Skip to content

Commit 9308959

Browse files
committed
ci: Update workflows to match new presets
1 parent 840913a commit 9308959

File tree

2 files changed

+30
-53
lines changed

2 files changed

+30
-53
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,12 @@ jobs:
8080
shell: pwsh
8181
run: |
8282
# Define the base directories as local variables first
83-
$VSCommonDir = "C:\VC6\VC6SP6\Common"
84-
$MSDevDir = "C:\VC6\VC6SP6\Common\msdev98"
85-
$MSVCDir = "C:\VC6\VC6SP6\VC98"
86-
$VcOsDir = "WINNT"
87-
83+
$VS6_DIR = "C:\VC6\VC6SP6"
8884
# Set the variables in GitHub environment
89-
"VSCommonDir=$VSCommonDir" >> $env:GITHUB_ENV
90-
"MSDevDir=$MSDevDir" >> $env:GITHUB_ENV
91-
"MSVCDir=$MSVCDir" >> $env:GITHUB_ENV
92-
"VcOsDir=$VcOsDir" >> $env:GITHUB_ENV
93-
"PATH=$MSDevDir\BIN;$MSVCDir\BIN;$VSCommonDir\TOOLS\$VcOsDir;$VSCommonDir\TOOLS;$env:PATH" >> $env:GITHUB_ENV
94-
"INCLUDE=$MSVCDir\ATL\INCLUDE;$MSVCDir\INCLUDE;$MSVCDir\MFC\INCLUDE;$env:INCLUDE" >> $env:GITHUB_ENV
95-
"LIB=$MSVCDir\LIB;$MSVCDir\MFC\LIB;$env:LIB" >> $env:GITHUB_ENV
85+
"VS6_DIR=$VS6_DIR" >> $env:GITHUB_ENV
9686
9787
- name: Set Up VC2022 Environment
98-
if: startsWith(inputs.preset, 'win32')
88+
if: ${{ !startsWith(inputs.preset, 'vc6') }}
9989
uses: ilammy/msvc-dev-cmd@v1
10090
with:
10191
arch: x86
@@ -131,14 +121,9 @@ jobs:
131121
run: |
132122
$buildDir = "build\${{ inputs.preset }}"
133123
$artifactsDir = New-Item -ItemType Directory -Force -Path "$buildDir\${{ inputs.game }}\artifacts" -Verbose
134-
135-
if ("${{ inputs.preset }}" -like "win32*") {
136-
# For win32 preset, look in config-specific subdirectories
137-
$configToUse = if ("${{ inputs.preset }}" -match "debug") { "Debug" } else { "Release" }
138-
$files = Get-ChildItem -Path "$buildDir\Core\$configToUse","$buildDir\${{ inputs.game }}\$configToUse" -File | Where-Object { $_.Extension -in @(".exe", ".dll", ".pdb") } -Verbose
139-
} else {
140-
$files = Get-ChildItem -Path "$buildDir\Core","$buildDir\${{ inputs.game }}" -File | Where-Object { $_.Extension -in @(".exe", ".dll", ".pdb") } -Verbose
141-
}
124+
# look in config-specific subdirectories
125+
$configToUse = if ("${{ inputs.preset }}" -match "relwithdebinfo") { "RelWithDebInfo" } else { "Release" }
126+
$files = Get-ChildItem -Path "$buildDir\Core\$configToUse","$buildDir\${{ inputs.game }}\$configToUse" -File | Where-Object { $_.Extension -in @(".exe", ".dll", ".pdb") } -Verbose
142127
$files | Move-Item -Destination $artifactsDir -Verbose -Force
143128
144129
- name: Upload ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact

.github/workflows/ci.yml

Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,30 @@ jobs:
6363
strategy:
6464
matrix:
6565
include:
66-
- preset: "vc6"
66+
- preset: "release"
6767
tools: true
6868
extras: true
69-
- preset: "vc6-profile"
69+
- preset: "relwithdebinfo"
7070
tools: true
7171
extras: true
72-
- preset: "vc6-debug"
72+
- preset: "dev-release"
7373
tools: true
7474
extras: true
75-
- preset: "win32"
75+
- preset: "dev-relwithdebinfo"
7676
tools: true
7777
extras: true
78-
- preset: "win32-profile"
78+
- preset: "vc6-release"
7979
tools: true
8080
extras: true
81-
- preset: "win32-debug"
81+
- preset: "vc6-relwithdebinfo"
82+
tools: true
83+
extras: true
84+
- preset: "vc6-dev-release"
85+
tools: true
86+
extras: true
87+
- preset: "vc6-dev-relwithdebinfo"
8288
tools: true
8389
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
9490
fail-fast: false
9591
uses: ./.github/workflows/build-toolchain.yml
9692
with:
@@ -107,34 +103,30 @@ jobs:
107103
strategy:
108104
matrix:
109105
include:
110-
- preset: "vc6"
106+
- preset: "release"
107+
tools: true
108+
extras: true
109+
- preset: "relwithdebinfo"
110+
tools: true
111+
extras: true
112+
- preset: "dev-release"
111113
tools: true
112114
extras: true
113-
- preset: "vc6-profile"
115+
- preset: "dev-relwithdebinfo"
114116
tools: true
115117
extras: true
116-
- preset: "vc6-debug"
118+
- preset: "vc6-release"
117119
tools: true
118120
extras: true
119-
- preset: "win32"
121+
- preset: "vc6-relwithdebinfo"
120122
tools: true
121123
extras: true
122-
- preset: "win32-profile"
124+
- preset: "vc6-dev-release"
123125
tools: true
124126
extras: true
125-
- preset: "win32-debug"
127+
- preset: "vc6-dev-relwithdebinfo"
126128
tools: true
127129
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
138130
fail-fast: false
139131
uses: ./.github/workflows/build-toolchain.yml
140132
with:

0 commit comments

Comments
 (0)