mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 21:40:05 +00:00
Use GCP instead of default cloud for AppVeyor builds
This commit is contained in:
parent
4516227a7b
commit
888f0e77f9
18
appveyor.yml
18
appveyor.yml
@ -1,8 +1,10 @@
|
|||||||
version: 'openfusion-{branch}-{build}'
|
version: 'openfusion-{branch}-{build}'
|
||||||
|
|
||||||
|
build_cloud: GCE us-east1-b n2-standard-8
|
||||||
|
|
||||||
image:
|
image:
|
||||||
- Visual Studio 2019
|
- GCP-Windows-VS2019
|
||||||
- Ubuntu2004
|
- GCP-Linux-Ubuntu1804
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- x64
|
- x64
|
||||||
@ -14,7 +16,7 @@ for:
|
|||||||
-
|
-
|
||||||
matrix:
|
matrix:
|
||||||
only:
|
only:
|
||||||
- image: Ubuntu2004
|
- image: GCP-Linux-Ubuntu1804
|
||||||
build_script:
|
build_script:
|
||||||
- ps: |
|
- ps: |
|
||||||
$versions = "104", "728", "1013"
|
$versions = "104", "728", "1013"
|
||||||
@ -26,7 +28,7 @@ for:
|
|||||||
Write-Error "make clean failed for version $version" -ErrorAction Stop
|
Write-Error "make clean failed for version $version" -ErrorAction Stop
|
||||||
}
|
}
|
||||||
Write-Output "Building version $version"
|
Write-Output "Building version $version"
|
||||||
Invoke-Expression "make PROTOCOL_VERSION=$version"
|
Invoke-Expression "make -j8 PROTOCOL_VERSION=$version"
|
||||||
if ($LASTEXITCODE -ne "0") {
|
if ($LASTEXITCODE -ne "0") {
|
||||||
Write-Error "make failed for version $version" -ErrorAction Stop
|
Write-Error "make failed for version $version" -ErrorAction Stop
|
||||||
}
|
}
|
||||||
@ -37,12 +39,12 @@ for:
|
|||||||
Copy-Item -Path "config.ini" -Destination "bin"
|
Copy-Item -Path "config.ini" -Destination "bin"
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: bin
|
- path: bin
|
||||||
name: ubuntu20_04-bin-x64
|
name: linux-bin-x64
|
||||||
type: zip
|
type: zip
|
||||||
-
|
-
|
||||||
matrix:
|
matrix:
|
||||||
only:
|
only:
|
||||||
- image: Visual Studio 2019
|
- image: GCP-Windows-VS2019
|
||||||
install:
|
install:
|
||||||
- cmd: vcpkg install sqlite3:x64-windows
|
- cmd: vcpkg install sqlite3:x64-windows
|
||||||
- cmd: vcpkg integrate install
|
- cmd: vcpkg integrate install
|
||||||
@ -71,7 +73,7 @@ for:
|
|||||||
|
|
||||||
foreach ($configuration in $configurations) {
|
foreach ($configuration in $configurations) {
|
||||||
Write-Output "Building version $version $configuration"
|
Write-Output "Building version $version $configuration"
|
||||||
Invoke-Expression "msbuild build\OpenFusion.sln /p:Configuration=$configuration"
|
Invoke-Expression "msbuild -m:8 build\OpenFusion.sln /p:Configuration=$configuration"
|
||||||
if ($LASTEXITCODE -ne "0") {
|
if ($LASTEXITCODE -ne "0") {
|
||||||
Write-Error "msbuild build failed for version $version" -ErrorAction Stop
|
Write-Error "msbuild build failed for version $version" -ErrorAction Stop
|
||||||
}
|
}
|
||||||
@ -83,5 +85,5 @@ for:
|
|||||||
}
|
}
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: bin
|
- path: bin
|
||||||
name: windows-vs2019-bin-x64
|
name: windows-bin-x64
|
||||||
type: zip
|
type: zip
|
||||||
|
Loading…
Reference in New Issue
Block a user