Skip to content

Commit

Permalink
Merge pull request #95 from Juesto/patch-1
Browse files Browse the repository at this point in the history
make CI build vs 2015 + revert rem vpu
  • Loading branch information
TF2V authored Dec 1, 2024
2 parents 6c1944a + 662f4eb commit 529966f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,36 @@ on:
jobs:
build:
runs-on:
windows-2022
windows-2019

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true

- name: Configure dependencies
uses: ilammy/msvc-dev-cmd@v1
- name: Install components
run: |
Set-Location "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
$InstallPath = "C:\Program Files\Microsoft Visual Studio\2019\Enterprise"
$Arguments = ('/c', "vs_installer.exe", 'modify', '--installPath', "`"$InstallPath`"", '--add', "Microsoft.VisualStudio.Component.VC.140", '--add', 'Microsoft.VisualStudio.Component.Windows81SDK','--quiet', '--norestart', '--nocache')
# should be run twice
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
$process = Start-Process -FilePath cmd.exe -ArgumentList $Arguments -Wait -PassThru -WindowStyle Hidden
- name: Configure registry
shell: powershell
run: |
REG ADD "HKLM\Software\Microsoft\VisualStudio\12.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "DefaultProjectExtension" /t REG_SZ /d "vcxproj" /f /reg:32
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
REG ADD "HKLM\Software\Microsoft\VisualStudio\14.0\Projects\{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}" /v "DefaultProjectExtension" /t REG_SZ /d "vcxproj" /f /reg:32
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
- name: Configure dependencies
uses: ilammy/msvc-dev-cmd@v1

- name: Create project
run: |
cd src
devtools/bin/vpc.exe /tf2vintage /2015 +game /mksln TF2vintage.sln
devtools/bin/vpu.exe /2019 TF2vintage.sln
devtools/bin/vpc.exe /tf2vintage +game /mksln TF2vintage.sln
- name: Build project
run: cd src;devenv TF2vintage.sln /Build Release
Expand Down
2 changes: 1 addition & 1 deletion src/createtf2vintage.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
devtools\bin\vpc.exe /tf2vintage /2015 +game /mksln TF2vintage.sln
rem devtools\bin\vpu.exe /2019 /cxx17 TF2vintage.sln
devtools\bin\vpu.exe /2019 /cxx17 TF2vintage.sln

0 comments on commit 529966f

Please sign in to comment.