Tommy Marrinan | f658588 | 2017-02-10 10:51:24 +0000 | [diff] [blame] | 1 | version: 1.0.{build} |
| 2 | |
| 3 | image: Visual Studio 2015 |
| 4 | |
| 5 | configuration: Release |
| 6 | |
| 7 | # Configure both 32-bit and 64-bit builds |
| 8 | environment: |
| 9 | matrix: |
| 10 | - platform: x86 |
| 11 | config: Win32 |
| 12 | pout: x86 |
| 13 | - platform: x64 |
| 14 | config: x64 |
| 15 | pout: x64 |
| 16 | |
| 17 | shallow_clone: true |
| 18 | |
| 19 | # Download Meson and Ninja, create install directory |
| 20 | before_build: |
| 21 | - mkdir build |
| 22 | - mkdir libepoxy-shared-%pout% |
| 23 | - cd build |
Emmanuele Bassi | a7439f9 | 2018-10-05 00:53:21 +0100 | [diff] [blame] | 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 |
Tommy Marrinan | f658588 | 2017-02-10 10:51:24 +0000 | [diff] [blame] | 28 | - rmdir dist |
Emmanuele Bassi | a7439f9 | 2018-10-05 00:53:21 +0100 | [diff] [blame] | 29 | - del meson-0.47.1.tar meson-0.47.1.tar.gz |
Tommy Marrinan | f658588 | 2017-02-10 10:51:24 +0000 | [diff] [blame] | 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 |
| 36 | build_script: |
| 37 | - cd build |
| 38 | - call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% |
Emmanuele Bassi | a7439f9 | 2018-10-05 00:53:21 +0100 | [diff] [blame] | 39 | - C:\Python36\python.exe meson-0.47.1\meson.py .. . --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\libepoxy-shared-%pout% |
Tommy Marrinan | f658588 | 2017-02-10 10:51:24 +0000 | [diff] [blame] | 40 | - ninja |
| 41 | - ninja install |
| 42 | - cd .. |
| 43 | |
| 44 | # Copy license into install directory and create .zip file |
| 45 | after_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 | |
| 50 | artifacts: |
| 51 | - path: libepoxy-shared-%pout%.zip |
| 52 | name: libepoxy-shared-%pout% |
| 53 | |
| 54 | test: off |
| 55 | |
| 56 | # Upload .zip file to GitHub release |
| 57 | deploy: |
| 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 |