Skip to content

Commit

Permalink
Merge branch 'main' into dev/grendel/as-on-windows
Browse files Browse the repository at this point in the history
* main:
  [ci] Fix unsigned artifact uploading (#13)
  • Loading branch information
grendello committed Feb 29, 2024
2 parents 88b0f28 + 5e88061 commit dabb05f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 10 additions & 4 deletions build-tools/automation/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ variables:
value: Real
${{ else }}:
value: Test
- name: ToolchainArtifactName
${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/'), eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(parameters.SignArtifactsOverride, 'true')) }}:
value: android-llvm-toolchain-signed
${{ else }}:
value: android-llvm-toolchain-unsigned
- name: TeamName
value: XamarinAndroid
- name: BUILD_DIR
Expand Down Expand Up @@ -154,7 +159,7 @@ extends:
brew install cmake ninja ccache
displayName: Install LLVM build dependencies
- script: brew install make xz
- script: export HOMEBREW_NO_INSTALL_UPGRADE=1 && brew install make xz
displayName: Install Xamarin.Android Utilities build dependencies

- script: bash ./build-llvm.sh
Expand Down Expand Up @@ -214,8 +219,8 @@ extends:
targetPath: $(Build.StagingDirectory)/binlogs/sign-macos.binlog
sbomEnabled: false
- output: pipelineArtifact
displayName: Upload toolchain-signed artifact
artifactName: android-llvm-toolchain-signed
displayName: Upload toolchain artifact
artifactName: $(ToolchainArtifactName)
targetPath: $(Build.StagingDirectory)/toolchain
steps:
- checkout: self
Expand Down Expand Up @@ -251,6 +256,7 @@ extends:
inputs:
projects: build-tools/automation/sign.proj
arguments: >-
-t:Build,ZipOutput
-p:SignType=$(MicroBuildSignType)
-bl:$(Build.StagingDirectory)/binlogs/sign-macos.binlog
Expand All @@ -276,7 +282,7 @@ extends:

- task: DownloadPipelineArtifact@2
inputs:
artifactName: android-llvm-toolchain-signed
artifactName: $(ToolchainArtifactName)
downloadPath: $(Build.SourcesDirectory)\artifacts

- task: MicroBuildCodesignVerify@3
Expand Down
3 changes: 1 addition & 2 deletions build-tools/automation/sign.proj
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
</ItemGroup>
</Target>

<Target Name="_ZipOutput"
AfterTargets="SignFiles" >
<Target Name="ZipOutput" >
<ReadLinesFromFile File="$(OutDir)\darwin\llvm-version.txt" >
<Output TaskParameter="Lines" ItemName="_VersionLines"/>
</ReadLinesFromFile>
Expand Down

0 comments on commit dabb05f

Please sign in to comment.