forked from exaile/exaile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
72 lines (59 loc) · 2.28 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: "{branch}-{build}"
image: Visual Studio 2019
environment:
APPVEYOR_SAVE_CACHE_ON_ERROR: "true"
build_dir: C:\msys64\home\appveyor
build_root: exaile\tools\installer\_build_root
build_root_slash: exaile/tools/installer/_build_root
sdk_name: exaile-sdk-win
sdk_ver: 39
sdk_url: https://github.com/exaile/$(sdk_name)/releases/download/$(sdk_name)-$(sdk_ver)/$(sdk_name)-$(sdk_ver).tar.zst
clone_folder: $(build_dir)\$(APPVEYOR_PROJECT_NAME)
clone_depth: 1
cache:
- C:\msys64\var\cache\pacman\pkg
- '%build_dir%\%sdk_name%-%sdk_ver%.tar.zst'
init:
- cmd: |
REM Update PATH for Bash
set hostbash=C:\msys64\usr\bin\bash.exe
set sdkbash=%build_dir%\%build_root%\usr\bin\bash.exe
set GTK_SDK_VERBOSE=1
set MAKEFLAGS=-j2
IF "%APPVEYOR_REPO_TAG%" == "true" (set DIST_VERSION=%APPVEYOR_REPO_TAG_NAME%)
IF "%APPVEYOR_REPO_TAG%" == "true" (set dist_name=%APPVEYOR_PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%)
IF "%APPVEYOR_REPO_TAG%" == "false" (set dist_name=%APPVEYOR_PROJECT_NAME%-%APPVEYOR_BUILD_NUMBER%)
echo Using dist_name %dist_name%
REM Show detailed package statistics on pacman -S
echo [options]>> C:\msys64\etc\pacman.conf
echo VerbosePkgLists>> C:\msys64\etc\pacman.conf
install:
- cmd: |
%hostbash% -lc "pacman --noconfirm --noprogressbar -S zstd"
cd %build_dir%
git clone --depth=1 https://github.com/exaile/python-gtk3-gst-sdk.git
%hostbash% -lc "[ -f $sdk_name-$sdk_ver.tar.zst ] || time curl -qfLo $sdk_name-$sdk_ver.tar.zst $sdk_url"
before_build:
- cmd: |
mkdir %build_root%
%hostbash% -lc "time tar -xf $sdk_name-$sdk_ver.tar.zst -C $build_root_slash"
%sdkbash% -lc exit
build_script:
- cmd: |
%sdkbash% -lc "cd ""$build_dir/exaile/tools/installer"" && time ../../../python-gtk3-gst-sdk/win_installer/build_win32_installer.sh"
after_build:
- cmd: |
move "exaile\tools\installer\exaile-LATEST.exe" "%APPVEYOR_BUILD_FOLDER%\%dist_name%.exe"
artifacts:
- path: $(dist_name).exe
name: dist
deploy:
provider: GitHub
tag: $(APPVEYOR_REPO_TAG_NAME)
description: ""
draft: true
auth_token:
secure: SIgbVNCx4ge9VT0J/0X8kovjreWVKJyWiquTLXmoUZItQk5aNr5jl1KNbOiTPdeu # exailebot's access token
artifact: dist
on:
APPVEYOR_REPO_TAG: true