Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Add Android build
Browse files Browse the repository at this point in the history
  • Loading branch information
Berrysoft committed Jul 7, 2019
1 parent 792f2fc commit c36c093
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ ClientBin/
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs

Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions TsinghuaNet/TsinghuaNet.Standard.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="MSBuild.Sdk.Extras/2.0.29">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFrameworks>netstandard2.0;monoandroid10;xamarinios10</TargetFrameworks>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<FileVersion>4.0.0.0</FileVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
33 changes: 32 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ variables:
gtkProject: 'TsinghuaNet.Eto/TsinghuaNet.Eto.Gtk/TsinghuaNet.Eto.Gtk.csproj'
macProject: 'TsinghuaNet.Eto/TsinghuaNet.Eto.Mac/TsinghuaNet.Eto.Mac.csproj'
uwpProject: 'TsinghuaNet.Uno/TsinghuaNet.Uno.UWP/TsinghuaNet.Uno.UWP.csproj'
droidProject: 'TsinghuaNet.Uno/TsinghuaNet.Uno.Droid/TsinghuaNet.Uno.Droid.csproj'

jobs:
- job: Linux_CLI
Expand Down Expand Up @@ -207,4 +208,34 @@ jobs:
solution: '$(uwpProject)'
configuration: 'Release'
msbuildArguments: '/p:AppxBundlePlatforms="x86|x64" /p:AppxPackageDir="build\uwp\AppxPackages" /p:AppxBundle=Always /p:UapAppxPackageBuildMode=SideloadOnly'
#msbuildArguments: '/p:JavaSdkDirectory="%JAVA_HOME%"'

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'build\uwp\AppxPackages'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)\TsinghuaNet.Uno.UWP.zip'

- task: PublishBuildArtifacts@1
inputs:
artifactName: 'publish'

- job: Windows_Android
pool:
vmImage: 'windows-2019'
steps:
- task: NuGetToolInstaller@0
inputs:
versionSpec: '5.1.0'

- task: NuGetCommand@2
inputs:
restoreSolution: '$(unoSolution)'
feedsToUse: config
nugetConfigPath: 'NuGet.Config'

- task: MSBuild@1
inputs:
solution: '$(droidProject)'
configuration: 'Release'
msbuildArguments: '/p:JavaSdkDirectory="%JAVA_HOME%"'

0 comments on commit c36c093

Please sign in to comment.