|
|
|
@ -31,13 +31,31 @@ jobs: |
|
|
|
- name: Setup .NET Core SDK |
|
|
|
uses: actions/setup-dotnet@v1 |
|
|
|
|
|
|
|
# Arcade only allows the revision to contain up to two characters, and GitHub Actions does not roll-over |
|
|
|
# build numbers every day like Azure DevOps does. To balance these two requirements, set the official |
|
|
|
# build ID to be the same format as the built-in default from Arcade, except with the revision number |
|
|
|
# being the number of the quarter hour of the current time of day (24 * 4 = 96, which is less than 100). |
|
|
|
# So a build between 00:00 and 00:14 would have a revision of 1, and a build between 23:45 and 23:59:59 |
|
|
|
# would have a revision of 97. |
|
|
|
- name: Set Build ID |
|
|
|
if: ${{ startsWith(github.ref, 'refs/pull/') == false }} |
|
|
|
shell: pwsh |
|
|
|
run: | |
|
|
|
$Now = (Get-Date).ToUniversalTime() |
|
|
|
$Hours = $Now.Hour * 4 |
|
|
|
$QuarterHours = [Math]::Floor($Now.Minute / 15.0) |
|
|
|
$Revision = $Hours + $QuarterHours + 1 |
|
|
|
$BuildId = $Now.ToString("yyyyMMdd") + "." + $Revision |
|
|
|
Write-Host "::set-env name=OfficialBuild::true" |
|
|
|
Write-Host "::set-env name=OfficialBuildId::${BuildId}" |
|
|
|
|
|
|
|
- name: Build, test and pack |
|
|
|
run: eng\common\CIBuild.cmd -configuration Release -prepareMachine -integrationTest |
|
|
|
run: eng\common\CIBuild.cmd -configuration Release -prepareMachine -integrationTest /p:DotNetPublishUsingPipelines=true |
|
|
|
if: ${{ runner.os == 'Windows' }} |
|
|
|
|
|
|
|
- name: Build, test and pack |
|
|
|
shell: pwsh |
|
|
|
run: ./eng/common/cibuild.sh -configuration Release -prepareMachine -integrationTest |
|
|
|
run: ./eng/common/cibuild.sh -configuration Release -prepareMachine -integrationTest /p:DotNetPublishUsingPipelines=true |
|
|
|
if: ${{ runner.os != 'Windows' }} |
|
|
|
|
|
|
|
- name: Publish logs |
|
|
|
|