This commit is contained in:
CPunch 2020-08-21 17:14:38 -05:00
commit fdfa7b5776

View File

@ -15,10 +15,24 @@ for:
matrix: matrix:
only: only:
- image: Ubuntu2004 - image: Ubuntu2004
before_build:
- mkdir -p bin
build_script: 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: artifacts:
- path: bin - path: bin
name: ubuntu20_04-bin-x64 name: ubuntu20_04-bin-x64