Skip to content

Commit

Permalink
Merge branch 'main' into dev/waan/enableOsxTesting
Browse files Browse the repository at this point in the history
  • Loading branch information
WardenGnaw authored Jul 20, 2021
2 parents d66868a + 6007e3d commit 5d8874d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions eng/pipelines/steps/PublishOpenDebugAD7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ parameters:

steps:
- script: |
dotnet publish $(Build.SourcesDirectory)\src\OpenDebugAD7\OpenDebugAD7.csproj -c ${{ parameters.Configuration }} -r ${{ parameters.RuntimeID }} --self-contained -o $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\OpenDebugAD7.dll "$(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\Microsoft.DebugEngineHost.dll $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
copy ${{ parameters.SignedBinariesFolder }}\Release\Microsoft.MIDebugEngine.dll $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
copy ${{ parameters.SignedBinariesFolder }}\Release\Microsoft.MICore.dll $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
dotnet publish $(Build.SourcesDirectory)\src\OpenDebugAD7\OpenDebugAD7.csproj -c ${{ parameters.Configuration }} -r ${{ parameters.RuntimeID }} --self-contained -o $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\OpenDebugAD7.dll "$(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\Microsoft.DebugEngineHost.dll $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
copy ${{ parameters.SignedBinariesFolder }}\Release\Microsoft.MIDebugEngine.dll $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
copy ${{ parameters.SignedBinariesFolder }}\Release\Microsoft.MICore.dll $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
displayName: "Publish OpenDebugAD7 ${{ parameters.RuntimeID }}"

# Windows Steps for copying over the exe and verify the windows binaries.
- ${{ if startsWith(parameters.RuntimeID, 'win-') }}:
- ${{ if startsWith(parameters.RuntimeID, 'win') }}:
- script: |
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\OpenDebugAD7.exe $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
copy ${{ parameters.SignedBinariesFolder }}\Release\vscode\OpenDebugAD7.exe $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
displayName: "Copy OpenDebugAD7.exe"
- template: ../tasks/SignVerify.yml
parameters:
TargetFolders: $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\.
TargetFolders: $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters\bin\.
ExcludeSNVerify: true # Ignore CrossGen'ed .NET binaries

# macOS Steps since we need to harden and sign the binary.
- ${{ if startsWith(parameters.RuntimeID, 'osx-') }}:
- template: ../tasks/PublishPipelineArtifact.yml
parameters:
displayName: 'Publish Unsigned ${{ parameters.RuntimeID }}'
path: '$(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}'
path: '$(Build.StagingDirectory)\${{ parameters.RuntimeID }}'
artifactName: 'unsigned_${{ parameters.RuntimeID }}_binaries'

# Publishing for non-macOS
- ${{ if not(startsWith(parameters.RuntimeID, 'osx-')) }}:
- powershell: |
Compress-Archive -Path $(Build.StagingDirectory)\debugAdapters\${{ parameters.RuntimeID }}\* -DestinationPath $(Build.StagingDirectory)\zips\${{ parameters.RuntimeID }}.zip
Compress-Archive -Path $(Build.StagingDirectory)\${{ parameters.RuntimeID }}\debugAdapters -DestinationPath $(Build.StagingDirectory)\zips\${{ parameters.RuntimeID }}.zip
displayName: "Create ${{ parameters.RuntimeID}}.zip"
- template: ../tasks/PublishPipelineArtifact.yml
Expand Down
12 changes: 6 additions & 6 deletions eng/pipelines/templates/VSCode-codesign-osx.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ steps:
artifact: 'unsigned_osx-x64_binaries'

- script: |
echo "#[command] codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/OpenDebugAD7"
codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/OpenDebugAD7
echo "#[command] codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/debugAdapters/bin/OpenDebugAD7"
codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/debugAdapters/bin/OpenDebugAD7
echo "#[command] cd $(Pipeline.Workspace)/Artifacts/"
cd $(Pipeline.Workspace)/Artifacts/
cd $(Pipeline.Workspace)/Artifacts
echo "#[command] zip -r $(Pipeline.Workspace)/osx-x64.zip *"
zip -r $(Pipeline.Workspace)/osx-x64.zip *
echo "#[command] zip -r $(Pipeline.Workspace)/osx-x64.zip ./debugAdapters"
zip -r $(Pipeline.Workspace)/osx-x64.zip ./debugAdapters
- template: ../tasks/PublishPipelineArtifact.yml
parameters:
Expand Down

0 comments on commit 5d8874d

Please sign in to comment.