Skip to content

Commit 551981b

Browse files
committed
Blind retry.
1 parent 5afc3a6 commit 551981b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Provider/build.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ function Clean() {
2525
}
2626

2727
function Build() {
28-
function b($target) {
28+
function b($target, $check=$True) {
2929
dotnet msbuild /t:$target /p:Configuration=$Configuration "$baseDir\src\NETProvider.sln" /v:m /m
30-
Check-ExitCode
30+
if ($check) {
31+
Check-ExitCode
32+
}
3133
}
3234
b 'Clean'
35+
# this sometimes fails on CI
36+
b 'Restore' $False
3337
b 'Restore'
3438
b 'Build'
3539
$script:version = (Get-Item $baseDir\src\FirebirdSql.Data.FirebirdClient\bin\$Configuration\net452\FirebirdSql.Data.FirebirdClient.dll).VersionInfo.ProductVersion -replace '(\d+)\.(\d+)\.(\d+)(-[a-z0-9]+)?(.*)','$1.$2.$3$4'

0 commit comments

Comments
 (0)