Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions azure-pipelines-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
- ${{ each platform in parameters.platforms }}:
- ${{ each nodeVersion in parameters.nodeVersions }}:
- job:
displayName: ${{ format('{0} node v{1}', platform, nodeVersion) }}
timeoutInMinutes: 120

pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
displayName: Setup Python
inputs:
versionSpec: '2.7'
architecture: 'x64'
- task: NodeTool@0
displayName: Install Node
inputs:
versionSpec: $(nodeVersion)
# - 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: node js2bin.js --ci --node=$(nodeVersion) --size=2MB --size=4MB --upload --clean
displayName: Build base node binaries
env:
GITHUB_TOKEN: $(PersonalGithubToken)
53 changes: 10 additions & 43 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,11 @@
jobs:
- job: BuildBaseExe
timeoutInMinutes: 120
strategy:
matrix:
linux:
imageName: 'ubuntu-16.04'
mac:
imageName: 'macos-10.14'
windows_2017:
imageName: 'vs2017-win2016'
# windows_2015:
# imageName: 'vs2017-win2016'
# alpine:
# imageName: 'ubuntu-16.04'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
displayName: Setup Python
inputs:
versionSpec: '2.7'
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: node js2bin.js --ci --node=12.18.4 --size=2MB --size=4MB --upload --clean
displayName: Build base node binaries
env:
GITHUB_TOKEN: $(PersonalGithubToken)


- template: azure-pipelines-template.yml
parameters:
nodeVersions:
- 12.x
- 13.x
- 14.x
Comment on lines +5 to +7
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These would have to be full node versions. Also, I believe there is a maximum number of parallel pipelines allowed by Azure.

It would also be quite wasteful to rebuild all the versions all the time - ideally we'd have a script that checks the available versions of nodejs and just builds what;s not built already

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure how 9 builds is "wasteful".

ideally we'd have a script that checks the available versions of nodejs and just builds what;s not built already

What do you mean?

platforms:
- ubuntu-16.04
- macos-10.14
- vs2017-win2016