From: Bart House Date: Sun, 6 Dec 2020 01:31:59 +0000 (-0800) Subject: Adding Azure pipeline YAML. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13aa5e74803f2d54bb8e8eff8eddfb2004c1191b;p=nethack Adding Azure pipeline YAML. --- diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a2348072a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,73 @@ +# Starter pipeline +# Start with a minimal pipeline that you can customize to build and deploy your code. +# Add steps that build, run tests, deploy, and more: +# https://aka.ms/yaml + +strategy: + matrix: + linux: + imageName: 'ubuntu-20.04' + mac: + imageName: 'macOS-10.15' + windows: + imageName: 'windows-latest' + +pool: + vmImage: $(imageName) + +resources: + repositories: + - repository: luarepo + type: github + name: lua/lua + ref: refs/tags/v5.4.1 + endpoint: github.com_barthouse + +steps: +- checkout: git://NetHack/NHsource@NetHack-3.7 # $(Agent.BuildDirectory)\s\NHsource +- checkout: luarepo # $(Agent.BuildDirectory)\s\lua + +- task: DownloadSecureFile@1 + name: storeKey + displayName: 'Store Key Download' + inputs: + secureFile: 'NetHackPackage_StoreKey.pfx' + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + +- task: CopyFiles@2 + inputs: + contents: NetHackPackage_StoreKey.pfx + SourceFolder: $(Agent.TempDirectory) + TargetFolder: $(Agent.BuildDirectory)\s\NHsource\win\win32\vs + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + +- task: CopyFiles@2 + inputs: + SourceFolder: $(Agent.BuildDirectory)\s\lua + TargetFolder: $(Agent.BuildDirectory)\s\NHsource\lib\lua-5.4.1\src + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + +- task: MSBuild@1 + inputs: + solution: $(Agent.BuildDirectory)\s\NHsource\win\win32\vs\NetHack.sln + platform: Win32 + configuration: Debug + condition: eq( variables['Agent.OS'], 'Windows_NT' ) + +- bash: | + cd NHsource/sys/unix + sh setup.sh hints/linux.2020 + cd ../.. + make fetch-lua + make all + condition: eq( variables['Agent.OS'], 'Linux' ) + displayName: 'Linux Build' + +- bash: | + cd NHsource/sys/unix + sh setup.sh hints/macosx10.14 + cd ../.. + make fetch-lua + make all + condition: eq( variables['Agent.OS'], 'Darwin' ) + displayName: 'Mac Build'