jobs:
- job: macOS
  pool:
    vmImage: 'macOS-latest'
  steps:
    - pwsh: |
        sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer
        xcodebuild -project "./macos/ultraschall-soundboard.xcodeproj" -configuration Release
      displayName: Build
    - publish: '$(build.sourcesDirectory)/builds/macos/build'
      artifact: macOS
- job: Windows
  pool:
    vmImage: 'windows-latest'
  steps:
    - pwsh: |
        $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH"
        msbuild "./builds/win32/vs_2015/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64" -property:PlatformToolset="v142"
      displayName: Build
    - publish: '$(build.sourcesDirectory)/builds/win32/vs_2015/x64'
      artifact: Windows


jobs:
- job: macOS
  pool:
    vmImage: 'macOS-latest'
  steps:
    - pwsh: |
        sudo xcode-select -s /Applications/Xcode_10.3.app/Contents/Developer
        xcodebuild -project "./builds/macos/ultraschall-soundboard.xcodeproj" -configuration Release
      displayName: Build
    - publish: '$(build.sourcesDirectory)/builds/macos/build'
      artifact: macOS
- job: Windows
  pool:
    vmImage: 'windows-latest'
  steps:
    - pwsh: |
        $env:PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\;$env:PATH"
        msbuild "./builds/win32/vs_2019/ultraschall-soundboard.sln" -nologo -m -property:Configuration=Release -property:Platform="x64"
      displayName: Build
    - publish: '$(build.sourcesDirectory)/builds/win32/vs_2019/x64'
      artifact: Windows


Move to Windows 10 SDK / fix macOS path
Move to Windows 10 SDK / fix macOS path

