2021-01-27 00:57:02 +03:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- master
|
|
|
|
|
- dev
|
2021-01-27 01:18:09 +03:00
|
|
|
- /\d+\.\d+/
|
2021-01-27 00:57:02 +03:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
include:
|
|
|
|
|
- name: MacOS
|
|
|
|
|
os: osx
|
2021-05-21 05:33:40 -07:00
|
|
|
osx_image: xcode12.5
|
2021-01-28 12:54:09 +03:00
|
|
|
|
2021-01-28 14:18:28 +03:00
|
|
|
env:
|
2021-05-21 05:33:40 -07:00
|
|
|
- QT_VERSION=5.15.2
|
2021-06-02 17:56:01 +03:00
|
|
|
- QT_BIN_DIR=$HOME/Qt/$QT_VERSION/clang_64/bin
|
|
|
|
|
- QIF_BIN_DIR=$QT_BIN_DIR/../../../Tools/QtInstallerFramework/4.0/bin
|
2021-02-08 12:42:48 -08:00
|
|
|
|
2021-01-27 00:57:02 +03:00
|
|
|
script:
|
|
|
|
|
- |
|
2021-01-28 14:18:28 +03:00
|
|
|
if [ ! -f $HOME/Qt/$QT_VERSION/clang_64/bin/qmake ]; then \
|
2021-01-27 00:57:02 +03:00
|
|
|
brew install p7zip && \
|
|
|
|
|
pip3 install aqtinstall requests py7zr && \
|
2021-01-28 14:18:28 +03:00
|
|
|
python3 -m aqt install --outputdir $HOME/Qt $QT_VERSION mac desktop clang_64 -m qtbase && \
|
2021-06-02 00:49:42 +03:00
|
|
|
python3 -m aqt tool --outputdir $HOME/Qt mac tools_ifw 4.1 qt.tools.ifw.41;
|
2021-01-27 00:57:02 +03:00
|
|
|
fi
|
2021-01-28 12:54:09 +03:00
|
|
|
- bash deploy/build_macos.sh
|
|
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
|
provider: releases
|
|
|
|
|
token: $GH_TOKEN
|
2021-01-28 13:26:43 +03:00
|
|
|
skip_cleanup: true
|
2021-01-28 12:54:09 +03:00
|
|
|
file:
|
2021-02-10 06:57:26 -08:00
|
|
|
- "AmneziaVPN_unsigned.dmg"
|
2021-01-28 12:54:09 +03:00
|
|
|
on:
|
|
|
|
|
tags: true
|
|
|
|
|
branch: master
|
|
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
- name: Windows_x64
|
2021-01-27 00:57:02 +03:00
|
|
|
os: windows
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
|
2021-06-02 00:49:42 +03:00
|
|
|
- QT_VERSION=5.14.2
|
|
|
|
|
- BUILD_ARCH="64"
|
2021-01-27 00:57:02 +03:00
|
|
|
|
|
|
|
|
before_install:
|
2021-06-02 00:49:42 +03:00
|
|
|
- if [ ! -f /C/Qt/$QT_VERSION/msvc2017_64/bin/qmake ]; then choco install python --version 3.9.1; fi
|
2021-01-27 00:57:02 +03:00
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build"
|
|
|
|
|
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools"
|
|
|
|
|
- |
|
2021-06-02 00:49:42 +03:00
|
|
|
if [ ! -f /C/Qt/$QT_VERSION/msvc2017_64/bin/qmake ]; then \
|
2021-01-27 00:57:02 +03:00
|
|
|
pip3 install aqtinstall requests py7zr && \
|
2021-06-02 00:49:42 +03:00
|
|
|
python -m aqt install --outputdir /C/Qt $QT_VERSION windows desktop win32_msvc2017_64 -m qtbase && \
|
|
|
|
|
python -m aqt tool --outputdir /C/Qt windows tools_ifw 4.1 qt.tools.ifw.41; \
|
2021-01-27 00:57:02 +03:00
|
|
|
fi
|
2021-06-02 17:56:01 +03:00
|
|
|
- bash deploy/build_windows.sh
|
2021-01-27 00:57:02 +03:00
|
|
|
|
2021-01-28 12:54:09 +03:00
|
|
|
deploy:
|
|
|
|
|
provider: releases
|
|
|
|
|
token: $GH_TOKEN
|
2021-01-28 13:26:43 +03:00
|
|
|
skip_cleanup: true
|
2021-01-28 12:54:09 +03:00
|
|
|
file:
|
2021-06-02 00:49:42 +03:00
|
|
|
- "AmneziaVPN_x64.exe"
|
2021-01-28 12:54:09 +03:00
|
|
|
on:
|
|
|
|
|
tags: true
|
|
|
|
|
branch: master
|
2021-01-28 13:26:43 +03:00
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
- name: Windows_x32
|
|
|
|
|
os: windows
|
2021-06-02 00:49:42 +03:00
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
env:
|
|
|
|
|
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
|
|
|
|
|
- QT_VERSION=5.14.2
|
|
|
|
|
- BUILD_ARCH="32"
|
2021-06-02 00:49:42 +03:00
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
before_install:
|
|
|
|
|
- if [ ! -f /C/Qt/$QT_VERSION/msvc2017/bin/qmake ]; then choco install python --version 3.9.1; fi
|
2021-06-02 00:49:42 +03:00
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
script:
|
|
|
|
|
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build"
|
|
|
|
|
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools"
|
|
|
|
|
- |
|
|
|
|
|
if [ ! -f /C/Qt/$QT_VERSION/msvc2017/bin/qmake ]; then \
|
|
|
|
|
pip3 install aqtinstall requests py7zr && \
|
|
|
|
|
python -m aqt install --outputdir /C/Qt $QT_VERSION windows desktop win32_msvc2017 -m qtbase && \
|
|
|
|
|
python -m aqt tool --outputdir /C/Qt windows tools_ifw 4.1 qt.tools.ifw.41; \
|
|
|
|
|
fi
|
2021-06-02 17:56:01 +03:00
|
|
|
- bash deploy/build_windows.sh
|
2021-06-02 00:49:42 +03:00
|
|
|
|
2021-06-02 01:32:25 +03:00
|
|
|
deploy:
|
|
|
|
|
provider: releases
|
|
|
|
|
token: $GH_TOKEN
|
|
|
|
|
skip_cleanup: true
|
|
|
|
|
file:
|
|
|
|
|
- "AmneziaVPN_x32.exe"
|
|
|
|
|
on:
|
|
|
|
|
tags: true
|
|
|
|
|
branch: master
|
2021-06-02 00:49:42 +03:00
|
|
|
|
2021-01-28 13:26:43 +03:00
|
|
|
deploy:
|
|
|
|
|
skip_cleanup: true
|
|
|
|
|
|
2021-01-27 00:57:02 +03:00
|
|
|
before_cache:
|
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
|
|
|
|
|
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
|
|
|
|
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
|
|
|
|
|
|
|
|
|
|
cache:
|
|
|
|
|
directories:
|
|
|
|
|
- $HOME/Qt
|
|
|
|
|
- /C/Qt
|
2021-02-08 12:42:48 -08:00
|
|
|
- $HOME/Library/Caches/Homebrew
|