@@ -80,22 +80,12 @@ jobs:
80
80
shell : pwsh
81
81
run : |
82
82
# 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"
88
84
# 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
96
86
97
87
- name : Set Up VC2022 Environment
98
- if : startsWith(inputs.preset, 'win32')
88
+ if : ${{ ! startsWith(inputs.preset, 'vc6') }}
99
89
uses : ilammy/msvc-dev-cmd@v1
100
90
with :
101
91
arch : x86
@@ -131,14 +121,9 @@ jobs:
131
121
run : |
132
122
$buildDir = "build\${{ inputs.preset }}"
133
123
$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
142
127
$files | Move-Item -Destination $artifactsDir -Verbose -Force
143
128
144
129
- name : Upload ${{ inputs.game }} ${{ inputs.preset }}${{ inputs.tools && '+t' || '' }}${{ inputs.extras && '+e' || '' }} Artifact
0 commit comments