2022-08-28 22:31:01 +01:00
|
|
|
name: Build Artifacts for Windows
|
|
|
|
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-set-windows:
|
2022-09-02 09:35:18 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
source_branch: [sdk2013-sp, sdk2013-mp]
|
|
|
|
|
2022-08-28 22:31:01 +01:00
|
|
|
runs-on: windows-2022
|
|
|
|
|
|
|
|
steps:
|
2022-09-02 09:35:18 +01:00
|
|
|
- name: Checkout Mini Source SDK
|
2022-08-28 22:31:01 +01:00
|
|
|
id: checkout-minisdk
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2022-09-02 09:35:18 +01:00
|
|
|
repository: 'Joshua-Ashton/mini-source-sdk'
|
2022-08-28 22:31:01 +01:00
|
|
|
|
|
|
|
- name: Checkout VPhysics Jolt
|
|
|
|
id: checkout-code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2022-09-02 09:35:18 +01:00
|
|
|
path: '${{ matrix.source_branch }}/src/vphysics_jolt'
|
2022-08-28 22:31:01 +01:00
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: Find Visual Studio
|
|
|
|
id: find-vs
|
|
|
|
shell: pwsh
|
|
|
|
run: |
|
|
|
|
$installationPath = Get-VSSetupInstance `
|
|
|
|
| Select-VSSetupInstance -Require Microsoft.VisualStudio.Workload.NativeDesktop -Latest `
|
|
|
|
| Select-Object -ExpandProperty InstallationPath
|
|
|
|
Write-Output "VSDEVCMD=${installationPath}\Common7\Tools\VsDevCmd.bat" `
|
|
|
|
| Out-File -FilePath "${Env:GITHUB_ENV}" -Append
|
|
|
|
|
|
|
|
- name: Build MSVC x86
|
|
|
|
id: build
|
|
|
|
shell: pwsh
|
2022-09-02 09:35:18 +01:00
|
|
|
working-directory: '${{ matrix.source_branch }}/src'
|
2022-08-28 22:31:01 +01:00
|
|
|
run: |
|
|
|
|
& "${Env:COMSPEC}" /s /c "`"${Env:VSDEVCMD}`" -arch=x86 -host_arch=x64 -no_logo && set" `
|
|
|
|
| % { , ($_ -Split '=', 2) } `
|
|
|
|
| % { [System.Environment]::SetEnvironmentVariable($_[0], $_[1]) }
|
|
|
|
.\fix_registry.bat
|
|
|
|
.\createjoltprojects.bat
|
|
|
|
devenv jolt.sln /upgrade
|
|
|
|
msbuild jolt.sln /nodeReuse:false /t:Rebuild /p:Configuration=Release /p:Platform=x86 /m /v:minimal
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
id: upload-artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2022-09-02 09:35:18 +01:00
|
|
|
name: vphysics_jolt_${{ matrix.source_branch }}_win32
|
|
|
|
path: ${{ matrix.source_branch }}/game
|
2022-08-28 22:31:01 +01:00
|
|
|
if-no-files-found: error
|