-
Notifications
You must be signed in to change notification settings - Fork 17
/
azure-pipelines.yml
78 lines (73 loc) · 2.54 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
jobs:
- job: BuildBaseExe
timeoutInMinutes: 0
strategy:
matrix:
linux_arm64:
imageName: 'ubuntu-20.04'
arch: 'linux/arm64'
node: '18.20.4'
linux_amd64:
imageName: 'ubuntu-20.04'
arch: 'linux/amd64'
node: '18.20.4'
ptrcompress: false
linux_amd64_ptrc:
imageName: 'ubuntu-20.04'
arch: 'linux/amd64'
node: '18.20.4'
ptrcompress: true
windows_2019:
imageName: 'windows-2019'
node: '18.20.4'
ptrcompress: false
windows_2019_ptrc:
imageName: 'windows-2019'
node: '18.20.4'
ptrcompress: true
# mac:
# imageName: 'macos-10.14'
# node: '18.15.0'
# windows_2015:
# imageName: 'vs2017-win2016'
# alpine:
# imageName: 'ubuntu-16.04'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
displayName: Setup Python
inputs:
versionSpec: '3.9'
architecture: 'x64'
- task: NodeTool@0
displayName: Install Node
inputs:
versionSpec: '10.x'
# - script: sudo apt-get update && sudo apt-get install -y gcc-4.9 g++-4.9
# condition: contains(variables['Agent.JobName'], 'linux')
# displayName: Install Linux build dependencies
#- script: choco install visualcpp-build-tools --version 14.0.25420.1 -fy && npm config set msvs_version 2015
# condition: contains(variables['Agent.JobName'], 'windows_2015')
# displayName: Install Windows build dependencies
- script: choco install nasm -fy
displayName: Install Windows Assembler (NASM)
condition: contains(variables['Agent.JobName'], 'windows')
- script: npm ci
displayName: Install dependencies
- script: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
displayName: setup docker for multi platform
condition: contains(variables['Agent.JobName'], 'linux')
## linux builds
- script: node js2bin.js --ci --container=true --pointer-compress=$(ptrcompress) --node=$(node) --size=6MB --size=4MB --upload --clean --arch=${ARCH}
displayName: Build base node binaries linux
condition: contains(variables['Agent.JobName'], 'linux')
env:
GITHUB_TOKEN: $(PersonalGithubToken)
ARCH: $(arch)
## non-linux builds
- script: node js2bin.js --ci --container=true --pointer-compress=$(ptrcompress) --node=$(node) --size=6MB --size=4MB --upload --clean
displayName: Build base node binaries non-linux
condition: not(contains(variables['Agent.JobName'], 'linux'))
env:
GITHUB_TOKEN: $(PersonalGithubToken)