-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
azure-pipelines.yml
126 lines (115 loc) · 3.5 KB
/
azure-pipelines.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
jobs:
- job: build
pool:
vmImage: 'ubuntu-latest'
timeoutInMinutes: 360
condition: or(and(eq(variables['System.PullRequest.IsFork'], 'True'), eq(variables['Build.Reason'], 'PullRequest')), and(ne(variables['System.PullRequest.IsFork'], 'True'), ne(variables['Build.Reason'], 'PullRequest')))
strategy:
matrix:
cos7_x86_64_1:
DISTARCH: 'centos7-x86_64'
PTOP: '1:4'
cos7_x86_64_2:
DISTARCH: 'centos7-x86_64'
PTOP: '2:4'
cos7_x86_64_3:
DISTARCH: 'centos7-x86_64'
PTOP: '3:4'
cos7_x86_64_4:
DISTARCH: 'centos7-x86_64'
PTOP: '4:4'
cos7_aarch64_1:
DISTARCH: 'centos7-aarch64'
PTOP: '1:4'
cos7_aarch64_2:
DISTARCH: 'centos7-aarch64'
PTOP: '2:4'
cos7_aarch64_3:
DISTARCH: 'centos7-aarch64'
PTOP: '3:4'
cos7_aarch64_4:
DISTARCH: 'centos7-aarch64'
PTOP: '4:4'
cos7_ppc64le_1:
DISTARCH: 'centos7-ppc64le'
PTOP: '1:4'
cos7_ppc64le_2:
DISTARCH: 'centos7-ppc64le'
PTOP: '2:4'
cos7_ppc64le_3:
DISTARCH: 'centos7-ppc64le'
PTOP: '3:4'
cos7_ppc64le_4:
DISTARCH: 'centos7-ppc64le'
PTOP: '4:4'
alma8_x86_64:
DISTARCH: 'alma8-x86_64'
PTOP: '1:1'
alma8_aarch64:
DISTARCH: 'alma8-aarch64'
PTOP: '1:1'
alma8_ppc64le:
DISTARCH: 'alma8-ppc64le'
PTOP: '1:1'
alma9_x86_64:
DISTARCH: 'alma9-x86_64'
PTOP: '1:1'
alma9_aarch64:
DISTARCH: 'alma9-aarch64'
PTOP: '1:1'
alma9_ppc64le:
DISTARCH: 'alma9-ppc64le'
PTOP: '1:1'
maxParallel: 0
steps:
- checkout: self
clean: true
- script: |
sudo mkdir -p /opt/empty_dir || true
for d in \
/opt/ghc \
/opt/hostedtoolcache \
/usr/lib/jvm \
/usr/local/.ghcup \
/usr/local/lib/android \
/usr/local/share/powershell \
/usr/share/dotnet \
/usr/share/swift \
; do
sudo rsync --stats -a --delete /opt/empty_dir/ $d || true
done
sudo apt-get purge -y -f firefox \
google-chrome-stable \
microsoft-edge-stable
sudo apt-get autoremove -y >& /dev/null
sudo apt-get autoclean -y >& /dev/null
df -h
displayName: Manage disk space
- script: |
sudo fallocate -l 15GiB /swapfile || true
sudo chmod 600 /swapfile || true
sudo mkswap /swapfile || true
sudo swapon /swapfile || true
displayName: Create swap file
- bash: |
sudo apt-get remove -y --auto-remove gcc
sudo apt-get purge -y --auto-remove gcc
sed -h
echo `uname -s`
displayName: removing system compilers
- bash: .ci_scripts/install_miniconda.sh
displayName: install miniconda
- bash: |
set -e
source $HOME/miniforge3/etc/profile.d/conda.sh
conda activate base
cat .ci_scripts/condarc > $HOME/.condarc
mkdir -p build_logs
echo "cmd args: ${DISTARCH} ${PTOP}"
python build_cdt_recipes.py ${DISTARCH} --part-to-process=${PTOP}
displayName: build and upload CDTs
env:
ANACONDA_TOKEN: $(anaconda.token)
IS_FORK: $(System.PullRequest.IsFork)
- publish: build_logs/
artifact: build-logs-$(DISTARCH)-azurejob$(system.JobId)