Skip to content

Commit

Permalink
add native-powershell
Browse files Browse the repository at this point in the history
  • Loading branch information
KnicKnic committed Jul 1, 2019
1 parent 85f3f17 commit 5684911
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "native-powershell"]
path = native-powershell
url = https://github.com/KnicKnic/native-powershell.git
26 changes: 24 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ pool:

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildPlatform: 'x64'
buildConfiguration: 'Release'

steps:
- checkout: self
submodules: true

steps:
- task: NuGetToolInstaller@0

- task: NuGetCommand@2
Expand All @@ -35,3 +34,26 @@ steps:
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: PowerShell@2
inputs:
targetType: 'inline'
script: 'choco install -y golang ;
choco install -y mingw ;
refreshenv ;
copy native-powershell\host.h .\powershell\ ;
copy native-powershell\x64\Release\psh_host.dll . ;
copy native-powershell\x64\Release\psh_host.dll .\powershell\ ;
$env:GOBIN=$env:GOPATH + "\bin";
write-host $env:GOBIN $pwd $env:GOPATH $env:GOROOT;
go get . ;
go build . ;'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '**/$(BuildConfiguration)/**/?(*.exe|*.dll|*.pdb)'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: drop
1 change: 1 addition & 0 deletions native-powershell
Submodule native-powershell added at fb28fc

0 comments on commit 5684911

Please sign in to comment.