Skip to content

Commit 529966f

Browse files
authored
Merge pull request #95 from Juesto/patch-1
make CI build vs 2015 + revert rem vpu
2 parents 6c1944a + 662f4eb commit 529966f

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

Diff for: .github/workflows/windows.yml

+16-8
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,36 @@ on:
66
jobs:
77
build:
88
runs-on:
9-
windows-2022
10-
9+
windows-2019
10+
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v3
1414
with:
1515
submodules: true
1616

17-
- name: Configure dependencies
18-
uses: ilammy/msvc-dev-cmd@v1
17+
- name: Install components
18+
run: |
19+
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
20+
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2019\Enterprise"
21+
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", '--add', "Microsoft.VisualStudio.Component.VC.140", '--add', 'Microsoft.VisualStudio.Component.Windows81SDK','--quiet', '--norestart', '--nocache')
22+
# should be run twice
23+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
24+
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
1925
2026
- name: Configure registry
2127
shell: powershell
2228
run: |
23-
REG ADD "HKLM\Software\Microsoft\VisualStudio\12.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "DefaultProjectExtension" /t REG_SZ /d "vcxproj" /f /reg:32
24-
REG ADD "HKLM\Software\Microsoft\VisualStudio\12.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "PossibleProjectExtensions" /t REG_SZ /d "vcxproj;vcxitems;vcproj;mak" /f /reg:32
29+
REG ADD "HKLM\Software\Microsoft\VisualStudio\14.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "DefaultProjectExtension" /t REG_SZ /d "vcxproj" /f /reg:32
30+
REG ADD "HKLM\Software\Microsoft\VisualStudio\14.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "PossibleProjectExtensions" /t REG_SZ /d "vcxproj;vcxitems;vcproj;mak" /f /reg:32
31+
32+
- name: Configure dependencies
33+
uses: ilammy/msvc-dev-cmd@v1
2534

2635
- name: Create project
2736
run: |
2837
cd src
29-
devtools/bin/vpc.exe /tf2vintage /2015 +game /mksln TF2vintage.sln
30-
devtools/bin/vpu.exe /2019 TF2vintage.sln
38+
devtools/bin/vpc.exe /tf2vintage +game /mksln TF2vintage.sln
3139
3240
- name: Build project
3341
run: cd src;devenv TF2vintage.sln /Build Release

Diff for: src/createtf2vintage.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
devtools\bin\vpc.exe /tf2vintage /2015 +game /mksln TF2vintage.sln
2-
rem devtools\bin\vpu.exe /2019 /cxx17 TF2vintage.sln
2+
devtools\bin\vpu.exe /2019 /cxx17 TF2vintage.sln

0 commit comments

Comments
 (0)