forked from microsoft/node-pty
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.yml
More file actions
35 lines (31 loc) · 971 Bytes
/
build.yml
File metadata and controls
35 lines (31 loc) · 971 Bytes
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
parameters:
arch: 'x64'
steps:
- task: UseNode@1
inputs:
version: '22.x'
displayName: 'Install Node.js 22.x'
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
displayName: 'Use latest Python 3.x'
- bash: |
if [ "$(uname)" = "Linux" ]; then
sudo apt-get update -qq
sudo apt-get install -y gcc-10 g++-10
SYSROOT_PATH=$(node scripts/linux/install-sysroot.js ${{ parameters.arch }} | grep "SYSROOT_PATH=" | cut -d= -f2)
echo "##vso[task.setvariable variable=SYSROOT_PATH]$SYSROOT_PATH"
echo "##vso[task.setvariable variable=CC]gcc-10"
echo "##vso[task.setvariable variable=CXX]g++-10"
echo "Sysroot path set to: $SYSROOT_PATH"
fi
displayName: 'Install sysroot (Linux only)'
- script: npm ci
displayName: 'Install dependencies'
env:
ARCH: ${{ parameters.arch }}
npm_config_arch: ${{ parameters.arch }}
SYSROOT_PATH: $(SYSROOT_PATH)
CC: $(CC)
CXX: $(CXX)