Skip to content

Commit

Permalink
Try local m1 builder (#43)
Browse files Browse the repository at this point in the history
Rework binding builds
use local azure runner on my mini
  • Loading branch information
joedevivo authored Apr 6, 2021
1 parent d5efdfb commit 653fc2f
Show file tree
Hide file tree
Showing 9 changed files with 22,222 additions and 8,042 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 12.18.3
nodejs system
76 changes: 64 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,38 @@ stages:
- task: Npm@1
inputs:
command: 'install'
- script: ./scripts/build-bindings.sh @serialport/bindings
- script: ./scripts/build-bindings.sh drivelist
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run electron-rebuild'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build-bindings'
- publish: $(System.DefaultWorkingDirectory)/bindings
artifact: bindings-linux
- job: macOSBindings
- job: macOSBindings_arm64
pool:
name: Default
demands:
- agent.os -equals Darwin
- ARCH -equals arm64
steps:
# node built for m1 already on the box
- task: Npm@1
inputs:
command: 'install'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run electron-rebuild'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build-bindings'
- publish: $(System.DefaultWorkingDirectory)/bindings
artifact: bindings-macos-arm64
- job: macOSBindings_x86_64
pool:
vmImage: 'macos-latest'
steps:
Expand All @@ -36,10 +63,16 @@ stages:
- task: Npm@1
inputs:
command: 'install'
- script: ./scripts/build-bindings.sh @serialport/bindings
- script: ./scripts/build-bindings.sh drivelist
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run electron-rebuild'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build-bindings'
- publish: $(System.DefaultWorkingDirectory)/bindings
artifact: bindings-macos
artifact: bindings-macos-x86_64
- job: windowsBindings
pool:
vmImage: 'windows-latest'
Expand All @@ -51,8 +84,14 @@ stages:
- task: Npm@1
inputs:
command: 'install'
- script: ./scripts/build-bindings.cmd @serialport\bindings
- script: ./scripts/build-bindings.cmd drivelist
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run electron-rebuild'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run build-bindings'
- publish: $(System.DefaultWorkingDirectory)\bindings
artifact: bindings-win10
- job: circuitpythonStubs
Expand All @@ -71,9 +110,13 @@ stages:
- stage: Package
dependsOn: Bindings
jobs:
- job: package
- job: package
pool:
vmImage: 'ubuntu-latest'
name: Default
demands:
- agent.os -equals Darwin
- ARCH -equals arm64
#vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
Expand All @@ -85,16 +128,25 @@ stages:
- download: current
artifact: bindings-linux
- download: current
artifact: bindings-macos
artifact: bindings-macos-x86_64
- download: current
artifact: bindings-macos-arm64
- download: current
artifact: bindings-win10
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run install-bindings'
- download: current
artifact: stubs
- download: current
artifact: boards
- script: mv $(System.DefaultWorkingDirectory)/../boards $(System.DefaultWorkingDirectory)
- script: mv $(System.DefaultWorkingDirectory)/../stubs $(System.DefaultWorkingDirectory)
- script: ./scripts/install-bindings.sh $(System.DefaultWorkingDirectory)/../
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run install-bindings'
- publish: $(System.DefaultWorkingDirectory)/node_modules
artifact: modules-with-bindings
- script: mkdir $(System.DefaultWorkingDirectory)/package
Expand Down
Loading

0 comments on commit 653fc2f

Please sign in to comment.