Skip to content

Commit

Permalink
Repackage macos to make less manual work when creating a github relea…
Browse files Browse the repository at this point in the history
…se. (#157)
  • Loading branch information
BillyONeal authored Aug 13, 2021
1 parent 4544175 commit 85ab112
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions azure-pipelines/signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,25 +56,25 @@ jobs:
displayName: 'Publish vcpkg.exe'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\vcpkg.exe'
ArtifactName: 'Windows'
ArtifactName: 'Drop'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish vcpkg.pdb'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\vcpkg.pdb'
ArtifactName: 'Windows'
ArtifactName: 'Drop'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish tls12-download.exe'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\tls12-download.exe'
ArtifactName: 'Windows'
ArtifactName: 'Drop'
publishLocation: 'Container'
- task: PublishBuildArtifacts@1
displayName: 'Publish tls12-download.pdb'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\tls12-download.pdb'
ArtifactName: 'Windows'
ArtifactName: 'Drop'
publishLocation: 'Container'
- task: MicroBuildCleanup@1
condition: succeededOrFailed()
Expand All @@ -91,11 +91,11 @@ jobs:
script: |
cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DVCPKG_DEVELOPMENT_WARNINGS=ON -DVCPKG_WARNINGS_AS_ERRORS=ON -DVCPKG_BUILD_FUZZING=OFF -DVCPKG_EMBED_GIT_SHA=ON -B "$(Build.StagingDirectory)"
make -j 8 -C "$(Build.StagingDirectory)"
zip "$(Build.StagingDirectory)/vcpkg.zip" "$(Build.StagingDirectory)/vcpkg"
zip -j "$(Build.StagingDirectory)/vcpkg-macos.zip" "$(Build.StagingDirectory)/vcpkg"
- task: PublishBuildArtifacts@1
displayName: "Publish Unsigned MacOS Binary"
inputs:
PathtoPublish: '$(Build.StagingDirectory)/vcpkg.zip'
PathtoPublish: '$(Build.StagingDirectory)/vcpkg-macos.zip'
ArtifactName: 'staging'
publishLocation: 'Container'
- job: macos_sign
Expand All @@ -112,10 +112,17 @@ jobs:
- task: ms-vseng.MicroBuildTasks.7973a23b-33e3-4b00-a7d9-c06d90f8297f.MicroBuildSignMacFiles@1
displayName: 'Sign Mac Files'
inputs:
SigningTarget: '$(Build.ArtifactStagingDirectory)\staging\vcpkg.zip'
SigningTarget: '$(Build.ArtifactStagingDirectory)\staging\vcpkg-macos.zip'
SigningCert: 8003
- task: CmdLine@2
displayName: "Repackage signed vcpkg_macos binary"
inputs:
failOnStderr: true
script: |
tar.exe -C "$(Build.ArtifactStagingDirectory)" -xf "$(Build.ArtifactStagingDirectory)\staging\vcpkg-macos.zip"
move "$(Build.ArtifactStagingDirectory)\vcpkg" "$(Build.ArtifactStagingDirectory)\vcpkg-macos"
- task: PublishBuildArtifacts@1
displayName: 'Publish Signed Binary'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)\staging\vcpkg.zip'
ArtifactName: 'MacOS'
PathtoPublish: '$(Build.ArtifactStagingDirectory)\vcpkg-macos'
ArtifactName: 'Drop'

0 comments on commit 85ab112

Please sign in to comment.