-
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathazure-pipelines-linux.yml
More file actions
executable file
·90 lines (84 loc) · 3.69 KB
/
Copy pathazure-pipelines-linux.yml
File metadata and controls
executable file
·90 lines (84 loc) · 3.69 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# This file was generated automatically from conda-smithy. To update this configuration,
# update the conda-forge.yml and/or the recipe/meta.yaml.
# -*- mode: yaml -*-
jobs:
- job: linux
pool:
vmImage: ubuntu-latest
strategy:
matrix:
linux_64_build_typedebugchannel_targetsconda-forge_python_debugopenssl1.1.1:
CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugopenssl1.1.1
UPLOAD_PACKAGES: 'True'
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64
SHORT_CONFIG: linux_64_build_typedebugchannel_tar_hcda62207c0
linux_64_build_typedebugchannel_targetsconda-forge_python_debugopenssl3:
CONFIG: linux_64_build_typedebugchannel_targetsconda-forge_python_debugopenssl3
UPLOAD_PACKAGES: 'True'
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64
SHORT_CONFIG: linux_64_build_typedebugchannel_tar_h30c384a389
linux_64_build_typereleasechannel_targetsconda-forge_mainopenssl1.1.1:
CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainopenssl1.1.1
UPLOAD_PACKAGES: 'True'
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64
SHORT_CONFIG: linux_64_build_typereleasechannel_t_h1b30d0c4c1
linux_64_build_typereleasechannel_targetsconda-forge_mainopenssl3:
CONFIG: linux_64_build_typereleasechannel_targetsconda-forge_mainopenssl3
UPLOAD_PACKAGES: 'True'
DOCKER_IMAGE: quay.io/condaforge/linux-anvil-cos7-x86_64
SHORT_CONFIG: linux_64_build_typereleasechannel_t_h8be0192cab
timeoutInMinutes: 360
steps:
- script: |
rm -rf /opt/ghc
df -h
displayName: Manage disk space
# configure qemu binfmt-misc running. This allows us to run docker containers
# embedded qemu-static
- script: |
docker run --rm --privileged multiarch/qemu-user-static:register --reset --credential yes
ls /proc/sys/fs/binfmt_misc/
condition: not(startsWith(variables['CONFIG'], 'linux_64'))
displayName: Configure binfmt_misc
- script: |
export CI=azure
export GIT_BRANCH=$BUILD_SOURCEBRANCHNAME
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
if [[ "${BUILD_REASON:-}" == "PullRequest" ]]; then
export IS_PR_BUILD="True"
else
export IS_PR_BUILD="False"
fi
.scripts/run_docker_build.sh
displayName: Run docker build
env:
BINSTAR_TOKEN: $(BINSTAR_TOKEN)
FEEDSTOCK_TOKEN: $(FEEDSTOCK_TOKEN)
STAGING_BINSTAR_TOKEN: $(STAGING_BINSTAR_TOKEN)
- script: |
export CI=azure
export CI_RUN_ID=$(build.BuildNumber).$(system.JobAttempt)
export FEEDSTOCK_NAME=$(basename ${BUILD_REPOSITORY_NAME})
export CONDA_BLD_DIR=build_artifacts
export ARTIFACT_STAGING_DIR="$(Build.ArtifactStagingDirectory)"
# Archive everything in CONDA_BLD_DIR except environments
export BLD_ARTIFACT_PREFIX=conda_artifacts
if [[ "$AGENT_JOBSTATUS" == "Failed" ]]; then
# Archive the CONDA_BLD_DIR environments only when the job fails
export ENV_ARTIFACT_PREFIX=conda_envs
fi
./.scripts/create_conda_build_artifacts.sh
displayName: Prepare conda build artifacts
condition: succeededOrFailed()
- task: PublishPipelineArtifact@1
displayName: Store conda build artifacts
condition: not(eq(variables.BLD_ARTIFACT_PATH, ''))
inputs:
targetPath: $(BLD_ARTIFACT_PATH)
artifactName: $(BLD_ARTIFACT_NAME)
- task: PublishPipelineArtifact@1
displayName: Store conda build environment artifacts
condition: not(eq(variables.ENV_ARTIFACT_PATH, ''))
inputs:
targetPath: $(ENV_ARTIFACT_PATH)
artifactName: $(ENV_ARTIFACT_NAME)