blob: 8e0cae28031e63be60a8f96315afea5a3a53d922 [file] [log] [blame]
Tommy Marrinanf6585882017-02-10 10:51:24 +00001version: 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
Emmanuele Bassia7439f92018-10-05 00:53:21 +010024- 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 Marrinanf6585882017-02-10 10:51:24 +000028- rmdir dist
Emmanuele Bassia7439f92018-10-05 00:53:21 +010029- del meson-0.47.1.tar meson-0.47.1.tar.gz
Tommy Marrinanf6585882017-02-10 10:51:24 +000030- 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%
Emmanuele Bassia7439f92018-10-05 00:53:21 +010039- C:\Python36\python.exe meson-0.47.1\meson.py .. . --backend=ninja --prefix=%APPVEYOR_BUILD_FOLDER%\libepoxy-shared-%pout%
Tommy Marrinanf6585882017-02-10 10:51:24 +000040- 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