-
Notifications
You must be signed in to change notification settings - Fork 38
/
azure-pipelines.yml
68 lines (60 loc) · 2.04 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
trigger:
batch: true
branches:
include:
- '*'
jobs:
- job: 'JSONL'
# Manually enable for generating JSONL
condition: false
strategy:
matrix:
Python310Mac:
imageName: 'macos-latest'
python.version: '3.10'
Python310Windows:
imageName: 'windows-latest'
python.version: '3.10'
maxParallel: 4
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- script: choco install llvm
condition: eq( variables['Agent.OS'], 'Windows_NT')
displayName: 'Preinstall (Windows)'
- script: git config --global core.autocrlf false
displayName: 'Disable automatic crlf conversion'
- script: git submodule update --init --recursive
displayName: 'Update git modules'
- script: |
python -m pip install --upgrade pip wheel setuptools
pip install -r requirements.txt
displayName: 'Install dependencies'
# Set the correct paths and includes. Only the env variables set here are
# used, not the ones defined in the .jsonl.
- script: |
set "PATH=C:\Program Files\LLVM\bin;%PATH%"
set "AR=llvm-ar"
set "AS=llvm-as"
set "CC=clang"
set RANLIB=echo
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
clang --version
bash -lc "./bin/generate-make-jsonl windows generic --export"
bash -lc "./bin/generate-make-jsonl windows x86_64 --export"
condition: eq( variables['Agent.OS'], 'Windows_NT')
displayName: 'Generate JSONL (Windows)'
- script: |
bin/generate-make-jsonl darwin generic --export
bin/generate-make-jsonl darwin x86_64 --export
bin/generate-make-jsonl darwin x86_64_no_zen3 --export
bin/generate-make-jsonl darwin x86_64_no_zen2 --export
bin/generate-make-jsonl darwin x86_64_no_skx --export
condition: eq(variables['Agent.OS'], 'Darwin')
displayName: 'Generate JSONL (Mac)'
- publish: $(System.DefaultWorkingDirectory)/artifacts
artifact: '$(Agent.JobName)'