1clone_depth: 1
2image: Visual Studio 2019
3
4environment:
5  matrix:
6    - TARGET: msvc
7    # mingw currently causes unnecessary compilation errors due to appveyor-internal problems
8    # - TARGET: mingw
9
10install:
11    - IF "%TARGET%"=="mingw" (choco install InnoSetup)
12    - C:\msys64\usr\bin\bash -l /c/projects/pioneer/CI/appveyor/%TARGET%/prepare.sh
13
14build_script:
15    # - C:\msys64\usr\bin\bash -l /c/projects/pioneer/CI/appveyor/%TARGET%/build.sh
16    - C:\projects\pioneer\CI\appveyor\%TARGET%\build.cmd
17
18# Create a draft release with the installer on new tags in master
19deploy:
20    release: Pioneer $(APPVEYOR_REPO_TAG_NAME)
21    description: 'New Pioneer release'
22    provider: GitHub
23    auth_token:
24        secure: smikwozIgIcE3OfE/LMdzXnJY6CyX3i1k34OkPLk3/MF0mBeHyX4uQNbbb9Ucaip
25    artifact: /.*\.exe
26    draft: true
27    on:
28        APPVEYOR_REPO_TAG: true
29