AppVeyor: Build all protocol versions on Linux (#21)

* let's try this

* Update appveyor.yml
This commit is contained in:
Raymonf 2020-08-21 16:39:30 -04:00 committed by GitHub
parent caaffcbe3d
commit 7318d9b578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,10 +15,24 @@ for:
matrix:
only:
- image: Ubuntu2004
before_build:
- mkdir -p bin
build_script:
- make
- ps: |
$versions = "104", "728"
foreach ($version in $versions) {
Write-Output "Cleaning old output"
Invoke-Expression "make clean"
if ($LASTEXITCODE -ne "0") {
Write-Error "make clean failed for version $version" -ErrorAction Stop
}
Write-Output "Building version $version"
Invoke-Expression "make PROTOCOL_VERSION=$version"
if ($LASTEXITCODE -ne "0") {
Write-Error "make failed for version $version" -ErrorAction Stop
}
Rename-Item -Path "bin/fusion" -newName "$version-fusion"
Write-Output "Built version $version"
}
artifacts:
- path: bin
name: ubuntu20_04-bin-x64