|
1 | 1 | --- |
| 2 | +parameters: |
| 3 | + rids: ["osx-x64", "osx-arm64"] |
| 4 | + |
2 | 5 | steps: |
3 | 6 | - checkout: self |
4 | 7 |
|
5 | | -- template: ../tasks/DownloadPipelineArtifact.yml |
6 | | - parameters: |
7 | | - displayName: 'Downloading unsigned_osx-x64_binaries' |
8 | | - path: '$(Pipeline.Workspace)/Artifacts' |
9 | | - artifact: 'unsigned_osx-x64_binaries' |
| 8 | +- ${{ each rid in parameters.rids }}: |
| 9 | + - template: ../tasks/DownloadPipelineArtifact.yml |
| 10 | + parameters: |
| 11 | + displayName: 'Downloading unsigned_${{ rid }}_binaries' |
| 12 | + path: '$(Pipeline.Workspace)/Artifacts/${{ rid }}' |
| 13 | + artifact: 'unsigned_${{ rid }}_binaries' |
10 | 14 |
|
11 | | -- script: | |
12 | | - echo "#[command] codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/debugAdapters/bin/OpenDebugAD7" |
13 | | - codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/debugAdapters/bin/OpenDebugAD7 |
| 15 | + - script: | |
| 16 | + echo "#[command] codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/${{ rid }}/debugAdapters/bin/OpenDebugAD7" |
| 17 | + codesign -s - -f --entitlements $(Build.SourcesDirectory)/eng/Signing/macOS/debugger-entitlements.plist $(Pipeline.Workspace)/Artifacts/${{ rid }}/debugAdapters/bin/OpenDebugAD7 |
14 | 18 |
|
15 | | - echo "#[command] cd $(Pipeline.Workspace)/Artifacts/" |
16 | | - cd $(Pipeline.Workspace)/Artifacts |
| 19 | + echo "#[command] cd $(Pipeline.Workspace)/Artifacts/${{ rid }}" |
| 20 | + cd $(Pipeline.Workspace)/Artifacts/${{ rid }} |
17 | 21 |
|
18 | | - echo "#[command] zip -r $(Pipeline.Workspace)/osx-x64.zip ./debugAdapters" |
19 | | - zip -r $(Pipeline.Workspace)/osx-x64.zip ./debugAdapters |
| 22 | + echo "#[command] zip -r $(Pipeline.Workspace)/${{ rid }}.zip ./debugAdapters" |
| 23 | + zip -r $(Pipeline.Workspace)/${{ rid }}.zip ./debugAdapters |
20 | 24 |
|
21 | | -- template: ../tasks/PublishPipelineArtifact.yml |
22 | | - parameters: |
23 | | - displayName: 'Publish Binaries' |
24 | | - path: '$(Pipeline.Workspace)/osx-x64.zip' |
25 | | - artifactName: 'unsigned_osx-x64_zip' |
| 25 | + - template: ../tasks/PublishPipelineArtifact.yml |
| 26 | + parameters: |
| 27 | + displayName: 'Publish Binaries' |
| 28 | + path: '$(Pipeline.Workspace)/${{ rid }}.zip' |
| 29 | + artifactName: 'unsigned_${{ rid }}_zip' |
26 | 30 | ... |
0 commit comments