Skip to content

Commit

Permalink
Add CI for automatic builds (#32)
Browse files Browse the repository at this point in the history
* Set up CI with Azure Pipelines
  • Loading branch information
kwsch authored Aug 8, 2021
1 parent b21f229 commit d44efa5
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PKHeX.Mobile/ViewModels/LoadableViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace PKHeX.ViewModels
{
public class LoadableViewModel : BaseViewModel
{
public ObservableCollection<LoadableSAV> Saves { get; set; } = new();
public ObservableCollection<LoadableSAV> Saves { get; set; } = new ObservableCollection<LoadableSAV>();
public ObservableCollection<LoadableSAV> Filtered { get; set; }

public ICommand SearchCommand => new Command<string>(SearchItems);
Expand Down
2 changes: 1 addition & 1 deletion PKHeX.Mobile/ViewModels/SaveFileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public string ShowdownText {
}
}

public ObservableRangeCollection<string> BoxNames { get; } = new();
public ObservableRangeCollection<string> BoxNames { get; } = new ObservableRangeCollection<string>();

public int CurrentBox
{
Expand Down
34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Xamarin.Android
# Build a Xamarin.Android project.
# Add steps that test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xamarin

trigger:
- master

pool:
vmImage: 'windows-latest'

variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '**/*.sln'

- task: XamarinAndroid@1
inputs:
projectFile: '**/*droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: PKHeX.Mobile'
inputs:
pathtoPublish: '$(outputDirectory)'
ArtifactName: PKHeX.Android
condition: succeededOrFailed()

0 comments on commit d44efa5

Please sign in to comment.