daml/ci/build-windows.yml

31 lines
1.1 KiB
YAML
Raw Normal View History

2019-04-04 11:33:38 +03:00
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: '.\build.ps1 full'
displayName: 'Build'
- 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)"
2019-04-26 04:14:50 +03:00
name: release
- bash: |
set -euo pipefail
ARTIFACT=daml-sdk-$(release_tag)-windows.tar.gz
2019-04-26 04:14:50 +03:00
cp bazel-genfiles/release/sdk-release-tarball.tar.gz '$(Build.StagingDirectory)'/$ARTIFACT
echo "##vso[task.setvariable variable=artifact;isOutput=true]$ARTIFACT"
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)