mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 00:35:25 +03:00
433f484188
They can weigh close to 1GB, and the internal Azure networks are
unreliable enough that this adds up significant amounts of time to our
already slow CI pipeline (usually around a minute, but I've seen at
least one case where it took almost 28 minutes).
Given that we pretty much never look a them, 🔥.
CHANGELOG_BEGIN
CHANGELOG_END
57 lines
2.0 KiB
YAML
57 lines
2.0 KiB
YAML
# Copyright (c) 2020 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
steps:
|
|
- checkout: self
|
|
|
|
- bash: ci/configure-bazel.sh
|
|
displayName: 'Configure Bazel'
|
|
env:
|
|
IS_FORK: $(System.PullRequest.IsFork)
|
|
# to upload to the bazel cache
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
- powershell: '.\ci\windows-diagnostics.ps1'
|
|
displayName: 'Agent diagnostics'
|
|
|
|
- powershell: '.\build.ps1'
|
|
displayName: 'Build'
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
condition: failed()
|
|
displayName: 'Publish the bazel test logs'
|
|
inputs:
|
|
pathtoPublish: 'bazel-testlogs/'
|
|
artifactName: 'Test logs'
|
|
|
|
- bash: |
|
|
set -euo pipefail
|
|
echo "Simulating release step..."
|
|
echo "##vso[task.setvariable variable=has_released;isOutput=true]true"
|
|
echo "##vso[task.setvariable variable=release_tag]$(cat VERSION)"
|
|
name: release
|
|
|
|
- bash: |
|
|
set -euo pipefail
|
|
ARTIFACT=daml-sdk-$(release_tag)-windows.tar.gz
|
|
cp bazel-bin/release/sdk-release-tarball.tar.gz '$(Build.StagingDirectory)'/$ARTIFACT
|
|
echo "##vso[task.setvariable variable=artifact;isOutput=true]$ARTIFACT"
|
|
WINDOWS_INSTALLER=daml-sdk-$(release_tag)-windows-unsigned.exe
|
|
cp bazel-bin/release/windows-installer/daml-sdk-installer.exe "$(Build.StagingDirectory)/$WINDOWS_INSTALLER"
|
|
echo "##vso[task.setvariable variable=artifact-unsigned-windows-installer;isOutput=true]$WINDOWS_INSTALLER"
|
|
name: publish
|
|
condition: eq(variables['release.has_released'], 'true')
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
condition: eq(variables['release.has_released'], 'true')
|
|
inputs:
|
|
targetPath: $(Build.StagingDirectory)/$(publish.artifact)
|
|
artifactName: $(publish.artifact)
|
|
|
|
- task: PublishPipelineArtifact@0
|
|
condition: eq(variables['release.has_released'], 'true')
|
|
inputs:
|
|
targetPath: $(Build.StagingDirectory)/$(publish.artifact-unsigned-windows-installer)
|
|
artifactName: $(publish.artifact-unsigned-windows-installer)
|
|
|