forked from WalletWasabi/WalletWasabi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-detbuild.yml
45 lines (39 loc) · 1.54 KB
/
azure-pipelines-detbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
trigger:
batch: true
branches:
include:
- master
pool:
vmImage: windows-latest
steps:
- checkout: self
path: WalletWasabi
- task: UseDotNet@2
displayName: 'Install .NET'
inputs:
version: 6.0.x
- task: PowerShell@2
displayName: 'Build and compare'
inputs:
targetType: 'inline'
script: |
# Change git output from stderr to stdout https://github.com/dahlbyk/posh-git/issues/109.
$env:GIT_REDIRECT_STDERR = '2>&1'
cd ..
# Copy the source files to a different location and build from there.
robocopy WalletWasabi WalletWasabiClone /COPYALL /S /XD ".git" /NFL /NDL /NJH
dotnet run -p WalletWasabi\WalletWasabi.Packager --onlybinaries
dotnet run -p WalletWasabiClone\WalletWasabi.Packager --cdelivery
Get-ChildItem -Recurse -Path WalletWasabiClone\WalletWasabi.Fluent.Desktop\bin\dist\cdelivery -Filter "*linux-x64.zip" | Expand-Archive -DestinationPath temp\linux-x64
Get-ChildItem -Recurse -Path WalletWasabiClone\WalletWasabi.Fluent.Desktop\bin\dist\cdelivery -Filter "*osx-x64.zip" | Expand-Archive -DestinationPath temp\osx-x64
Get-ChildItem -Recurse -Path WalletWasabiClone\WalletWasabi.Fluent.Desktop\bin\dist\cdelivery -Filter "*win7-x64.zip" | Expand-Archive -DestinationPath temp\win7-x64
git diff --no-index WalletWasabi\WalletWasabi.Fluent.Desktop\bin\dist temp
if (0 -eq $LASTEXITCODE)
{
Write-Output "Deterministic build succeed"
}
else
{
Write-Output "Deterministic build failed"
}
exit $LASTEXITCODE