Skip to content

Update pipeline and pipeline info in README.md #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# android-tools
[![Build Status](https://dev.azure.com/devdiv/DevDiv/_apis/build/status%2FXamarin%2FAndroid%2Fandroid-tools?branchName=main)](https://dev.azure.com/devdiv/DevDiv/_build/latest?definitionId=22338&branchName=main)

**android-tools** is a repo to easily share code between the
[xamarin-android][android] repo and the .NET for Android commercial tooling,
Expand All @@ -7,20 +8,6 @@ submodule the entire **android** repo, which is gigantic.

[android]: https://github.com/xamarin/xamarin-android

# Build Status

| Platform | Status |
|-----------------------|--------|
| **macOS** | [![macOS Build Status][azure-macOS-icon]][azure-macOS-status] |
| **Windows** | [![Windows Build Status][azure-Windows-icon]][azure-Windows-status] |


[azure-macOS-icon]: https://dev.azure.com/xamarin/public/_apis/build/status/xamarin-android-tools
[azure-macOS-status]: https://dev.azure.com/xamarin/public/_build/latest?definitionId=3
[azure-Windows-icon]: https://dev.azure.com/xamarin/public/_apis/build/status/xamarin-android-tools
[azure-Windows-status]: https://dev.azure.com/xamarin/public/_build/latest?definitionId=3


# Build Requirements

**-android-tools** requires .NET 6 or later.
Expand Down Expand Up @@ -71,7 +58,7 @@ The major version in the `nuget.version` file should be updated when a breaking
The minor version should be updated when new functionality is added.
The patch version will be automatically determined by the number of commits since the last version change.

Xamarin.Android.Tools.AndroidSdk nupkg files are produced for every build which occurrs on [Azure Devops](https://dev.azure.com/xamarin/Xamarin/_build?definitionId=2&_a=summary).
Xamarin.Android.Tools.AndroidSdk nupkg files are produced for every build which occurrs on [Azure Devops](https://devdiv.visualstudio.com/DevDiv/_build?definitionId=22338).
To download one of these packages, navigate to the build you are interested in and click on the `Artifacts` button.

Alternatively, "unofficial" releases are currently hosted on the [Xamarin.Android](https://dev.azure.com/xamarin/public/_packaging?_a=feed&feed=Xamarin.Android) feed.
Expand All @@ -85,8 +72,6 @@ Add the feed to your project's `NuGet.config` to reference these packages:
</configuration>
```

An Azure Pipelines [Release ](https://dev.azure.com/xamarin/public/_release?view=mine&_a=releases&definitionId=12) can be manually triggered to push a new version to this feed.

# Mailing Lists

To discuss this project, and participate in the design, we use the
Expand Down
29 changes: 16 additions & 13 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Android.Tools $(Rev:r)
name: android-tools $(Rev:r)

trigger:
- main
Expand All @@ -10,7 +10,7 @@ pr:

parameters:
- name: ApiScanSourceBranch
default: 'refs/heads/main'
default: refs/heads/main

# Global variables
variables:
Expand All @@ -21,22 +21,17 @@ jobs:
- job: build
displayName: Build and Test
timeoutInMinutes: 60
cancelTimeoutInMinutes: 2

strategy:
matrix:
macOS:
vmImage: macOS-12
vmImage: macOS-13
windows:
vmImage: windows-2022
Codeql.Enabled: true

pool:
vmImage: $(vmImage)

workspace:
clean: all

steps:
- checkout: self
clean: true
Expand All @@ -46,11 +41,14 @@ jobs:
inputs:
version: $(DotNetCoreVersion)

- script: dotnet build Xamarin.Android.Tools.sln -bl:$(Build.ArtifactStagingDirectory)/build.binlog
displayName: 'Build solution Xamarin.Android.Tools.sln'
- task: DotNetCoreCLI@2
displayName: Build solution Xamarin.Android.Tools.sln
inputs:
projects: Xamarin.Android.Tools.sln
arguments: -bl:$(Build.ArtifactStagingDirectory)/build.binlog

- task: DotNetCoreCLI@2
displayName: 'Run Tests'
displayName: Run Tests
inputs:
command: test
projects: bin/TestDebug-net*/**/*-Tests.dll
Expand All @@ -63,8 +61,13 @@ jobs:
Write-Host "##vso[task.setvariable variable=xat.nuget.version]$version"
condition: and(succeeded(), eq(variables['agent.os'], 'Windows_NT'))

- script: dotnet pack src/Xamarin.Android.Tools.AndroidSdk/Xamarin.Android.Tools.AndroidSdk.csproj -p:Version=$(xat.nuget.version) -p:PackageOutputPath=$(Build.ArtifactStagingDirectory) -bl:$(Build.ArtifactStagingDirectory)/pack.binlog
displayName: 'Build NuGet'
- task: DotNetCoreCLI@2
displayName: Build NuGet
inputs:
command: custom
projects: src/Xamarin.Android.Tools.AndroidSdk/Xamarin.Android.Tools.AndroidSdk.csproj
custom: pack
arguments: -p:Version=$(xat.nuget.version) -p:PackageOutputPath=$(Build.ArtifactStagingDirectory) -bl:$(Build.ArtifactStagingDirectory)/pack.binlog
condition: and(succeeded(), eq(variables['agent.os'], 'Windows_NT'))

- task: PublishPipelineArtifact@1
Expand Down