-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathappveyor.yml
53 lines (44 loc) · 1.6 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
version: 1.0.{build}
environment:
matrix:
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 64
PATH: 'C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%'
build_script:
# Get submodules
- git submodule update --init --recursive
# Not sure why, but seem to have to set path here
- SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
# Install 64-bit QT
- bash -lc "pacman -S --needed --noconfirm mingw-w64-x86_64-qt-creator"
# Install zlib
- bash -lc "pacman -S --needed --noconfirm zlib-devel"
# Install sqlite3
- bash -lc "pacman -S --needed --noconfirm mingw64/mingw-w64-x86_64-sqlite3"
# Build MAVEN
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; qmake -r"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; make -j2"
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; make INSTALL_ROOT=appdir install"
after_build:
- SET "PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%"
#- src\maven\get_version.bat > version.txt
#- SET /p VERSION=<version.txt
- bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./make_dist_win32.sh src/maven/appdir/bin/Maven.exe"
artifacts:
- path: 'dist/Maven*.zip'
name: Maven
deploy:
#release: myproduct-v$(appveyor_build_version)
description: ''
provider: GitHub
auth_token:
secure: 6eEEQOjuW0F1Zc4q948wpOkmKuzcozCjfXlRon8p46e8fP9Ga+BYg/BjBESGGFy9 # your encrypted token from GitHub
artifact: /Maven.*\.zip/ # upload Maven zip archive to release assets
draft: false
prerelease: false
on:
appveyor_repo_tag: true # deploy on tag push only