mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-04 22:40:05 +00:00
df18f3ccd1
* Cleaned up protocol selection. * cmake now works even if protocol option is omitted * make now supports protocol selection * removed PACKET_VERSION/CNPROTO_VERSION* redundancy * ubuntu appveyor script has yet to be written * cleaned up some trailing spaces * Add some test items. Ironically, this change is untested. * [bugfix] Transmit MOTD when entering the game, not when loading screen fades. This fixes unnecessary retransmission when /warping.
66 lines
1.9 KiB
YAML
66 lines
1.9 KiB
YAML
version: 'openfusion-{branch}-{build}'
|
|
|
|
image:
|
|
- Visual Studio 2019
|
|
- Ubuntu2004
|
|
|
|
platform:
|
|
- x64
|
|
|
|
configuration:
|
|
- Release
|
|
|
|
for:
|
|
-
|
|
matrix:
|
|
only:
|
|
- image: Ubuntu2004
|
|
before_build:
|
|
- mkdir -p bin
|
|
build_script:
|
|
- make
|
|
artifacts:
|
|
- path: bin
|
|
name: ubuntu20_04-bin-x64
|
|
type: zip
|
|
-
|
|
matrix:
|
|
only:
|
|
- image: Visual Studio 2019
|
|
build_script:
|
|
- ps: |
|
|
$versions = "0104", "0728"
|
|
$configurations = "Release", "Debug"
|
|
|
|
# AppVeyor uses VS2019 Community
|
|
$vsPath = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
|
|
|
|
Import-Module "$vsPath\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
|
|
Enter-VsDevShell -VsInstallPath $vsPath -SkipAutomaticLocation
|
|
|
|
foreach ($version in $versions) {
|
|
if (Test-Path -LiteralPath "build") {
|
|
Remove-Item "build" -Recurse
|
|
Write-Output "Deleted existing build folder"
|
|
}
|
|
Invoke-Expression "cmake -B build -DPROTOCOL_VERSION=$version"
|
|
if ($LASTEXITCODE -ne "0") {
|
|
Write-Error "cmake generation failed for version $version" -ErrorAction Stop
|
|
}
|
|
Write-Output "Generated build files for version $version"
|
|
|
|
foreach ($configuration in $configurations) {
|
|
Write-Output "Building version $version $configuration"
|
|
Invoke-Expression "msbuild build\OpenFusion.sln /p:Configuration=$configuration"
|
|
if ($LASTEXITCODE -ne "0") {
|
|
Write-Error "msbuild build failed for version $version" -ErrorAction Stop
|
|
}
|
|
Rename-Item -Path "bin/$configuration" -newName "$version-$configuration"
|
|
Write-Output "Built version $version $configuration"
|
|
}
|
|
}
|
|
artifacts:
|
|
- path: bin
|
|
name: windows-vs2019-bin-x64
|
|
type: zip
|