-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
Copy pathazure-pipelines-linux.yml
executable file
·143 lines (123 loc) · 3.96 KB
/
azure-pipelines-linux.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
jobs:
- job: linux_64
condition: not(eq(variables['Build.SourceBranch'], 'refs/heads/main'))
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 360
steps:
- script: |
sudo mkdir -p /opt/empty_dir
for d in \
/opt/ghc \
/opt/hostedtoolcache \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/android \
/usr/local/powershell \
/usr/share/dotnet \
/usr/share/swift \
; do
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true
done
displayName: Manage disk space
- script: |
sudo fallocate -l 10GiB /swapfile || true
sudo chmod 600 /swapfile || true
sudo mkswap /swapfile || true
sudo swapon /swapfile || true
displayName: Create swap file
- script: |
# sudo pip install --upgrade pip
sudo pip install setuptools shyaml
displayName: Install dependencies
- script: |
set -e
# make sure there is a package directory so that artifact publishing works
mkdir -p build_artifacts/{noarch,linux-64}/
export CI=azure
export CONFIG=linux64
export DOCKER_IMAGE=quay.io/condaforge/linux-anvil-cos7-x86_64
export AZURE=True
.scripts/run_docker_build.sh
displayName: Run docker build
name: linux_64_build
- publish: build_artifacts/linux-64/
artifact: conda_pkgs_linux
- publish: build_artifacts/noarch/
artifact: conda_pkgs_noarch
- job: linux_64_cuda_118
dependsOn: linux_64
condition: and(not(eq(variables['Build.SourceBranch'], 'refs/heads/main')), eq(dependencies.linux_64.outputs['linux_64_build.NEED_CUDA'], '1'))
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 360
steps:
- script: |
sudo mkdir -p /opt/empty_dir
for d in \
/opt/ghc \
/opt/hostedtoolcache \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/android \
/usr/local/powershell \
/usr/share/dotnet \
/usr/share/swift \
; do
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true
done
displayName: Manage disk space
- script: |
# sudo pip install --upgrade pip
sudo pip install setuptools shyaml
displayName: Install dependencies
- script: |
set -e
# make sure there is a package directory so that artifact publishing works
mkdir -p build_artifacts/linux-64/
export CI=azure
export CONFIG=linux64_cuda118
export DOCKER_IMAGE=quay.io/condaforge/linux-anvil-cuda:11.8
export AZURE=True
.scripts/run_docker_build.sh
displayName: Run docker build for CUDA 11.8
- publish: build_artifacts/linux-64/
artifact: conda_pkgs_linux_64_cuda118
- job: linux_64_cuda_120
dependsOn: linux_64
condition: and(not(eq(variables['Build.SourceBranch'], 'refs/heads/main')), eq(dependencies.linux_64.outputs['linux_64_build.NEED_CUDA'], '1'))
pool:
vmImage: ubuntu-latest
timeoutInMinutes: 360
steps:
- script: |
sudo mkdir -p /opt/empty_dir
for d in \
/opt/ghc \
/opt/hostedtoolcache \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/android \
/usr/local/powershell \
/usr/share/dotnet \
/usr/share/swift \
; do
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true
done
displayName: Manage disk space
- script: |
# sudo pip install --upgrade pip
sudo pip install setuptools shyaml
displayName: Install dependencies
- script: |
set -e
# make sure there is a package directory so that artifact publishing works
mkdir -p build_artifacts/linux-64/
export CI=azure
export CONFIG=linux64_cuda120
export DOCKER_IMAGE=quay.io/condaforge/linux-anvil-cos7-x86_64
export AZURE=True
.scripts/run_docker_build.sh
displayName: Run docker build for CUDA 12.0
- publish: build_artifacts/linux-64/
artifact: conda_pkgs_linux_64_cuda120