Split pipeline into 2 jobs
This commit is contained in:
parent
9fc5cb9b51
commit
a5252bd299
|
@ -2,32 +2,42 @@
|
|||
# Build a general Node.js project with npm.
|
||||
# Add steps that analyze code, save build artifacts, deploy, and more:
|
||||
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
|
||||
|
||||
trigger:
|
||||
- master
|
||||
- azure-pipelines
|
||||
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
jobs:
|
||||
- job: 32-bit
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '8.x'
|
||||
displayName: 'Install Node.js'
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '8.x'
|
||||
displayName: 'Install Node.js'
|
||||
- script: |
|
||||
npm set npm_config_arch ia32
|
||||
npm install --arch=ia32 electron-prebuilt -g
|
||||
npm install --arch=ia32 electron-builder -g
|
||||
npm install --arch=ia32 electron-rebuild -g
|
||||
npm install --arch=ia32
|
||||
electron-rebuild -f --arch=ia32
|
||||
electron-builder --win --arch=ia32
|
||||
displayName: 'npm install and build 32-bit'
|
||||
|
||||
- job: 64-bit
|
||||
pool:
|
||||
vmImage: 'vs2017-win2016'
|
||||
|
||||
- script: |
|
||||
npm install
|
||||
npm install electron-builder -g
|
||||
npm run build
|
||||
electron-builder --win
|
||||
displayName: 'npm install and build 64-bit'
|
||||
|
||||
- script: |
|
||||
npm set npm_config_arch ia32
|
||||
npm install --arch=ia32 electron-prebuilt -g
|
||||
npm install --arch=ia32 electron-builder -g
|
||||
npm install --arch=ia32 electron-rebuild -g
|
||||
npm install --arch=ia32
|
||||
electron-rebuild -f --arch=ia32
|
||||
electron-builder --win --arch=ia32
|
||||
displayName: 'npm install and build 32-bit'
|
||||
steps:
|
||||
- task: NodeTool@0
|
||||
inputs:
|
||||
versionSpec: '8.x'
|
||||
displayName: 'Install Node.js'
|
||||
- script: |
|
||||
npm install
|
||||
npm install electron-builder -g
|
||||
npm run build
|
||||
electron-builder --win
|
||||
displayName: 'npm install and build 64-bit'
|
Loading…
Reference in New Issue