mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-11 04:45:57 +03:00
CI nodes are reset at 4, which means starting at 3 doesn't leave us with enough time to complete. CHANGELOG_BEGIN CHANGELOG_END
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
pr: none
|
|
trigger: none
|
|
schedules:
|
|
- cron: "30 4 * * *"
|
|
displayName: Daily split snapshot
|
|
branches:
|
|
include:
|
|
- main
|
|
|
|
jobs:
|
|
- job: check_for_release
|
|
dependsOn:
|
|
- git_sha
|
|
variables:
|
|
branch_sha: $[ dependencies.git_sha.outputs['out.branch'] ]
|
|
fork_sha: $[ dependencies.git_sha.outputs['out.fork_point'] ]
|
|
pool:
|
|
name: "ubuntu_20_04"
|
|
demands: assignment -equals default
|
|
steps:
|
|
- template: bash-lib.yml
|
|
parameters:
|
|
var_name: bash-lib
|
|
- bash: |
|
|
set -euo pipefail
|
|
eval "$(./dev-env/bin/dade-assist)"
|
|
source $(bash-lib)
|
|
|
|
prefix=$(head -1 LATEST | awk '{print $2}' | sed -e 's/\([^-]*\).*/\1/')
|
|
release=$(./release.sh snapshot HEAD $prefix | awk '{print $2}')
|
|
|
|
setvar is_release true
|
|
setvar trigger_sha "$(branch_sha)"
|
|
setvar release_sha "$(branch_sha)"
|
|
setvar release_tag "$release"
|
|
setvar split_release_process true
|
|
setvar scala_2_13 true
|
|
name: out
|
|
- template: build.yml
|
|
- template: split-release-job.yml
|
|
- job: release
|
|
condition: false
|