mirror of
https://github.com/Neo-Desktop/WindowsXPKg
synced 2024-12-22 20:40:16 +02:00
Fix Windows Build
This commit is contained in:
parent
582ddf1bb8
commit
a787fc8e85
36
.github/workflows/windows.yml
vendored
36
.github/workflows/windows.yml
vendored
@ -30,10 +30,27 @@ jobs:
|
|||||||
build-32bit:
|
build-32bit:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install v141_xp
|
# https://github.com/actions/runner-images/issues/6067#issuecomment-1213069040
|
||||||
uses: thepwrtank18/install-vs-components@v1.0.0
|
- name: Install Windows XP Support for Visual Studio
|
||||||
with:
|
run: |
|
||||||
components: Microsoft.VisualStudio.Component.WinXP
|
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
|
||||||
|
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
|
||||||
|
$componentsToAdd = @(
|
||||||
|
"Microsoft.VisualStudio.Component.WinXP"
|
||||||
|
)
|
||||||
|
[string]$workloadArgs = $componentsToAdd | ForEach-Object {" --add " + $_}
|
||||||
|
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"",$workloadArgs, '--quiet', '--norestart', '--nocache')
|
||||||
|
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
|
||||||
|
if ($process.ExitCode -eq 0)
|
||||||
|
{
|
||||||
|
Write-Host "components have been successfully added"
|
||||||
|
Get-ChildItem C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Windows.XPSupport.*
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Write-Host "components were not installed"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
- name: Download And Install 32-bit OpenSSL 3.1.2
|
- name: Download And Install 32-bit OpenSSL 3.1.2
|
||||||
run: |
|
run: |
|
||||||
@ -64,7 +81,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build UMSKT
|
- name: Build UMSKT
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: msbuild ALL_BUILD.vcxproj /P:Configuration=Release /P:XPDeprecationWarning=false
|
run: msbuild ALL_BUILD.vcxproj /P:Configuration=Release
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
@ -75,11 +92,6 @@ jobs:
|
|||||||
build-64bit:
|
build-64bit:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install v141_xp
|
|
||||||
uses: thepwrtank18/install-vs-components@v1.0.0
|
|
||||||
with:
|
|
||||||
components: Microsoft.VisualStudio.Component.WinXP
|
|
||||||
|
|
||||||
- name: Download And Install 64-bit OpenSSL 3.1.2
|
- name: Download And Install 64-bit OpenSSL 3.1.2
|
||||||
run: |
|
run: |
|
||||||
$installDir = "$Env:ProgramFiles\OpenSSL"
|
$installDir = "$Env:ProgramFiles\OpenSSL"
|
||||||
@ -103,11 +115,11 @@ jobs:
|
|||||||
uses: threeal/cmake-action@v1.2.0
|
uses: threeal/cmake-action@v1.2.0
|
||||||
with:
|
with:
|
||||||
generator: "Visual Studio 17 2022"
|
generator: "Visual Studio 17 2022"
|
||||||
args: -A "x64" -T v141_xp
|
args: -A "x64"
|
||||||
|
|
||||||
- name: Build UMSKT
|
- name: Build UMSKT
|
||||||
working-directory: build
|
working-directory: build
|
||||||
run: msbuild ALL_BUILD.vcxproj /P:Configuration=Release /P:XPDeprecationWarning=false
|
run: msbuild ALL_BUILD.vcxproj /P:Configuration=Release
|
||||||
|
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v3.1.2
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
Loading…
Reference in New Issue
Block a user