forked from thecoshman/http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
55 lines (45 loc) · 1.54 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
image:
- Visual Studio 2022
version: 2.1.0-{build}
skip_tags: false
platform: x64
configuration: Release
clone_folder: C:\http
install:
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%;C:\Users\appveyor\.cargo\bin
# Double upgrade required here
- bash -lc "pacman --noconfirm -Syyu"
- bash -lc "pacman --noconfirm -Syyu"
- bash -lc "pacman --noconfirm -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-nsis unzip"
-
- curl -SL https://win.rustup.rs/ -oC:\rustup-init.exe
- C:\rustup-init.exe -y --default-host="x86_64-pc-windows-gnu"
-
- curl -SOL https://gistcdn.githack.com/nabijaczleweli/880a4b42368c610dc5de041d73bbea58/raw/7f3a23efe680d06934e6c0d7c9fbe92216da0682/EnVar_plugin.zip
- unzip -j EnVar_plugin.zip Plugins/amd64-unicode/EnVar.dll -d C:\msys64\mingw64\share\nsis\Plugins\unicode
build: off
build_script:
- git submodule update --init --recursive
- cargo build --verbose --release
- cp target\release\http.exe http-v2.1.0.exe
- strip --strip-all --remove-section=.comment --remove-section=.note http-v2.1.0.exe
- makensis -DHTTP_VERSION=v2.1.0 install.nsi
test: off
test_script:
- cargo test --verbose --release
artifacts:
- path: http-v2.1.0.exe
- path: http v2.1.0 installer.exe
deploy:
provider: GitHub
artifact: /http.*v2.1.0.*\.exe/
auth_token:
secure: ZTXvCrv9y01s7Hd60w8W7NaouPnPoaw9YJt9WhWQ2Pep8HLvCikt9Exjkz8SGP9P
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
on_build_status_changed: true
on_build_success: false