Skip to content

Commit

Permalink
Update pipeline to build windows and linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanmoffat committed Feb 11, 2022
1 parent 43bba8a commit bf06878
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ schedules:

strategy:
matrix:
# TODO: enable build for linux
# linux:
# imageName: "ubuntu-latest"
linux:
imageName: "ubuntu-latest"
solutionName: "EndlessClient.Linux.sln"
platform: "Linux"
windows:
imageName: "windows-latest"
solutionName: "EndlessClient.sln"
platform: "Windows"

pool:
vmImage: $(imageName)
Expand All @@ -42,25 +45,26 @@ steps:
inputs:
command: 'restore'
verbosityRestore: 'minimal'
projects: '$(Build.SourcesDirectory)\EndlessClient.sln'
projects: '$(Build.SourcesDirectory)\$(solutionName)'
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
command: 'build'
projects: '$(Build.SourcesDirectory)\EndlessClient.sln'
projects: '$(Build.SourcesDirectory)\$(solutionName)'
arguments: '--configuration $(buildConfiguration)'
- task: DotNetCoreCLI@2
displayName: 'dotnet test - skipping EOLib.Graphics.Test (not supported on VSTS agent)'
inputs:
command: 'test'
projects: '$(Build.SourcesDirectory)\EndlessClient.sln'
projects: '$(Build.SourcesDirectory)\$(solutionName)'
arguments: '--filter "TestCategory!=GraphicsDevice" --configuration $(buildConfiguration)'

- task: ArchiveFiles@2
displayName: 'ZIP EndlessClient'
inputs:
# todo: need to change project to not target the -windows version of net6.0
rootFolderOrFile: $(Build.SourcesDirectory)\bin\$(buildConfiguration)\client\net6.0-windows\
archiveFile: $(Build.ArtifactStagingDirectory)\EndlessClient.zip
archiveFile: $(Build.ArtifactStagingDirectory)\EndlessClient.$(platform).zip
- task: ArchiveFiles@2
displayName: 'ZIP EOBot'
inputs:
Expand All @@ -71,7 +75,7 @@ steps:
displayName: 'Publish Artifacts'
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: EndlessClient
ArtifactName: EndlessClient.$(platform)

- script: |
git tag build/$(Build.BuildNumber)
Expand Down

0 comments on commit bf06878

Please sign in to comment.