1version: 1.0.{build} 2 3image: Visual Studio 2015 4 5configuration: Release 6 7# Configure both 32-bit and 64-bit builds 8environment: 9 matrix: 10 - platform: x86 11 config: Win32 12 pout: x86 13 - platform: x64 14 config: x64 15 pout: x64 16 17shallow_clone: true 18 19# Download Meson and Ninja, create install directory 20before_build: 21- mkdir build 22- mkdir libepoxy-shared-%pout% 23- cd build 24- curl -LsSO https://github.com/mesonbuild/meson/releases/download/0.47.1/meson-0.47.1.tar.gz 25- 7z x meson-0.47.1.tar.gz 26- move dist\meson-0.47.1.tar . 27- 7z x meson-0.47.1.tar 28- rmdir dist 29- del meson-0.47.1.tar meson-0.47.1.tar.gz 30- curl -LsSO https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-win.zip 31- 7z x ninja-win.zip 32- del ninja-win.zip 33- cd .. 34 35# Build and install 36build_script: 37- cd build 38- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% 39- C:\Python36\python.exe meson-0.47.1\meson.py .. . --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\libepoxy-shared-%pout% 40- ninja 41- ninja install 42- cd .. 43 44# Copy license into install directory and create .zip file 45after_build: 46- copy COPYING libepoxy-shared-%pout% 47- dir libepoxy-shared-%pout% /s /b 48- 7z a -tzip libepoxy-shared-%pout%.zip libepoxy-shared-%pout% 49 50artifacts: 51 - path: libepoxy-shared-%pout%.zip 52 name: libepoxy-shared-%pout% 53 54test: off 55 56# Upload .zip file to GitHub release 57deploy: 58 release: $(APPVEYOR_REPO_TAG_NAME) 59 description: "Epoxy $(APPVEYOR_REPO_TAG_NAME)" 60 provider: GitHub 61 auth_token: 62 secure: X7Ro8Y2RWYo/M1AAn93f9X0dEQFvu7gPb6li2eKRtzPYLGj/JKm7MNWRw2cCcjm6 63 artifact: libepoxy-shared-$(pout) 64 draft: false 65 prerelease: false 66 on: 67 appveyor_repo_tag: true # deploy on tag push only 68