forked from WalletWasabi/WalletWasabi
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines-detbuild.yml
46 lines (40 loc) · 1.72 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
46
trigger:
batch: true
branches:
include:
- master
pool:
vmImage: windows-latest
steps:
- checkout: self
path: WalletWasabi
- task: UseDotNet@2
displayName: 'Install .NET'
inputs:
version: 7.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 /NFL /NDL /NJH
dotnet run --project WalletWasabi\WalletWasabi.Packager --onlybinaries
dotnet run --project 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 "*macOS-x64.zip" | Expand-Archive -DestinationPath temp\osx-x64
Get-ChildItem -Recurse -Path WalletWasabiClone\WalletWasabi.Fluent.Desktop\bin\dist\cdelivery -Filter "*macOS-arm64.zip" | Expand-Archive -DestinationPath temp\osx-arm64
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