summaryrefslogtreecommitdiffstats
path: root/.appveyor.yml
blob: b9a611b8f4938f398f6d55d5a6c97cf72f66c70f (plain)
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
# SPDX-License-Identifier: GPL-2.0-or-later
version: '{branch}-{build}'

clone_depth: 100

# do not build feature branches with open pull requests
skip_branch_with_pr: true

# avoid building 32-bit if 64-bit failed already
matrix:
  fast_finish: true

environment:
  PACMAN_OPTIONS: "--needed --noconfirm --noprogressbar --overwrite \\*"
  matrix:
    - MSYSTEM: MINGW64
    - MSYSTEM: MINGW32


init:
  - if "%APPVEYOR_PULL_REQUEST_NUMBER%" NEQ ""
      appveyor UpdateBuild -Version "!%APPVEYOR_PULL_REQUEST_NUMBER% (%APPVEYOR_REPO_BRANCH%-%APPVEYOR_BUILD_NUMBER%)"

install:
  - git submodule update --init --recursive

build_script:
  - del C:\Windows\System32\libssl-*.dll C:\Windows\system32\libcrypto-*.dll
  - del C:\Windows\SysWOW64\libssl-*.dll C:\Windows\SysWOW64\libcrypto-*.dll
  - curl -O http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
  - C:\msys64\usr\bin\bash --login -c "pacman -U $(cygpath ${APPVEYOR_BUILD_FOLDER})/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz %PACMAN_OPTIONS%"
  # for zst package format support
  - C:\msys64\usr\bin\pacman -U --noconfirm --noprogressbar http://repo.msys2.org/msys/x86_64/libzstd-1.4.4-2-x86_64.pkg.tar.xz http://repo.msys2.org/msys/x86_64/pacman-5.2.1-6-x86_64.pkg.tar.xz http://repo.msys2.org/msys/x86_64/zstd-1.4.4-2-x86_64.pkg.tar.xz
  - C:\msys64\usr\bin\pacman -Sy pacman %PACMAN_OPTIONS%
  - C:\msys64\usr\bin\pacman -Syuu %PACMAN_OPTIONS%
  - C:\msys64\usr\bin\bash --login -c "$(cygpath ${APPVEYOR_BUILD_FOLDER})/buildtools/appveyor.sh"


artifacts:
  - path: build\inkscape*.7z
  - path: build\inkscape*.exe
  - path: build\inkscape*.msi

cache:
  - '%APPVEYOR_BUILD_FOLDER%\build\ccache'

test: off