cutter/.appveyor.yml

87 lines
2.3 KiB
YAML
Raw Normal View History

version: '1.12.0-git-{build}'
image: 'Visual Studio 2017'
2017-10-03 12:42:31 +00:00
clone_depth: 1
# Build configuration
configuration:
- Release
# Environment
environment:
NINJA_URL: https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip
VSVARSALLPATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat'
ARCH: x64
PYTHON: 'C:\Python36-x64'
PACKAGE_NAME: cutter-git-x64.Windows
install:
- ps: $env:path = ($env:path -split ";").Where({!($_ -like "*Microsoft SQL Server*")}) -join ";"
- cmd: C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && scripts/fetch_deps.sh"
- cmd: set "CUTTER_DEPS=%APPVEYOR_BUILD_FOLDER%\cutter-deps"
- cmd: set "PATH=%CD%;%PYTHON%;%PATH%"
- cmd: call "%VSVARSALLPATH%" %ARCH%
- cmd: set "PATH=%CUTTER_DEPS%\qt\bin;%PYTHON%\Scripts\;%PATH%"
- cmd: echo %PATH%
- cmd: python -m pip install meson ninja
- ps: choco install winflexbison3
# Artifacts
- cmd: set "ARTIFACT_NAME=%PACKAGE_NAME%.zip"
- cmd: set "ARTIFACT_PATH=build\%ARTIFACT_NAME%"
2017-10-03 12:42:31 +00:00
before_build:
- cmd: git submodule update --init --recursive
- scripts\prepare_breakpad.bat
2017-10-03 12:42:31 +00:00
# Build config
build_script:
- cmd: |
mkdir build
cd build
set PACKAGE_NAME=cutter-git-x64.Windows
- cmd: "cmake
-DCMAKE_BUILD_TYPE=Release
-DCUTTER_USE_BUNDLED_RIZIN=ON
-DCUTTER_ENABLE_PYTHON=ON
-DCUTTER_ENABLE_PYTHON_BINDINGS=ON
-DCUTTER_ENABLE_PACKAGING=ON
-DCUTTER_PACKAGE_DEPENDENCIES=ON
2020-12-06 18:00:13 +00:00
-DCUTTER_PACKAGE_RZ_GHIDRA=ON
-DCUTTER_PACKAGE_JSDEC=ON
-DCUTTER_ENABLE_DEPENDENCY_DOWNLOADS=ON
-DCUTTER_ENABLE_CRASH_REPORTS=ON
-DCMAKE_PREFIX_PATH=%CUTTER_DEPS%\\pyside
-DCPACK_PACKAGE_FILE_NAME=%PACKAGE_NAME%
-G Ninja
.."
- cmd: cmake --build . --config Release
- cmd: cmake --build . --config Release --target package
2017-10-08 06:23:22 +00:00
2017-10-03 12:42:31 +00:00
# Tests
test: off
2017-10-08 06:23:22 +00:00
# Artifacts
artifacts:
- path: "%ARTIFACT_PATH%"
name: "%ARTIFACT_NAME%"
deploy:
2018-07-13 18:22:10 +00:00
description: 'Cutter binaries'
provider: GitHub
auth_token:
secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
2018-04-23 17:33:16 +00:00
artifact: "%ARTIFACT_NAME%"
2019-03-19 20:35:59 +00:00
draft: true
prerelease: true
on:
2018-12-24 14:23:03 +00:00
appveyor_repo_tag: true
2018-07-13 18:22:10 +00:00
DEPLOY: true
2018-10-02 11:38:17 +00:00
for:
-
branches:
2018-10-02 11:38:17 +00:00
only:
- master
-
skip_non_tags: true