-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
57 lines (48 loc) · 2.1 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
version: 0.2.0-{build}
skip_tags: false
platform:
- x64
- x86
configuration: Release
clone_folder: C:\totalcmd-zstd
install:
- set PATH=C:\msys64\mingw64\bin;C:\msys64\mingw32\bin;C:\msys64\usr\bin;C:\depends;%PATH%
-
- bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- bash -lc "pacman --noconfirm -Syyu"
- bash -lc "pacman --noconfirm -Su zip"
-
- curl -SOL "http://www.dependencywalker.com/depends22_x86.zip"
- unzip -d C:\depends depends22_x86.zip
-
- if "%Platform:x=%"=="64" (set BITNESS=64) else (set BITNESS=32)
- if "%BITNESS%"=="64" (set WCX=wcx64) else (set WCX=wcx)
- if "%BITNESS%"=="64" (set PLATFORM_EXPANSION=x86_64-w64) else (set PLATFORM_EXPANSION=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin\i686-w64)
build: off
build_script:
- git submodule update --init --recursive
- make CXX="%PLATFORM_EXPANSION%-mingw32-g++ -m%BITNESS%" CC="%PLATFORM_EXPANSION%-mingw32-gcc -m%BITNESS%"
-
- if "%BITNESS%"=="32" set PATH=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32\bin;%PATH%
- mkdir totalcmd-zstd-v0.2.0-%BITNESS%bit
- cp out\totalcmd-zstd.%WCX% totalcmd-zstd-v0.2.0-%BITNESS%bit\totalcmd-zstd.%WCX%
- strip --strip-all --remove-section=.comment --remove-section=.note totalcmd-zstd-v0.2.0-%BITNESS%bit\totalcmd-zstd.%WCX%
- sed -e "s/#VERSION#/v0.2.0/" -e "s/#BITNESS#/%BITNESS%/" pluginst.inf > totalcmd-zstd-v0.2.0-%BITNESS%bit\pluginst.inf
- start /w depends -f1 -ocout\totalcmd-zstd.csv -c out\totalcmd-zstd.%WCX%
- awk -F, "/mingw/ {print(tolower($2))}" out\totalcmd-zstd.csv | xargs cp -t totalcmd-zstd-v0.2.0-%BITNESS%bit
- cp LICENSE README.md totalcmd-zstd-v0.2.0-%BITNESS%bit
- zip -r9j totalcmd-zstd-v0.2.0-%BITNESS%bit.zip totalcmd-zstd-v0.2.0-%BITNESS%bit
test: off
artifacts:
- path: totalcmd-zstd-v0.2.0-%BITNESS%bit.zip
deploy:
provider: GitHub
artifact: totalcmd-zstd-v0.2.0-%BITNESS%bit.zip
auth_token:
secure: +ojhitnhqsAMTn/yVxUyiAYPT0RAz77+QJcLNVxm98LASuoKZufsBxJYMvt24OjY
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to: nabijaczleweli@gmail.com
on_build_status_changed: true