image:
- Visual Studio 2022
version: 1.13.1-{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
- 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-v1.13.1.exe
- strip --strip-all --remove-section=.comment --remove-section=.note http-v1.13.1.exe
- makensis -DHTTP_VERSION=v1.13.1 install.nsi
test: off
test_script:
- cargo test --verbose --release
artifacts:
- path: http-v1.13.1.exe
- path: http v1.13.1 installer.exe
deploy:
provider: GitHub
artifact: /http.*v1.13.1.*\.exe/
auth_token:
secure: ZTXvCrv9y01s7Hd60w8W7NaouPnPoaw9YJt9WhWQ2Pep8HLvCikt9Exjkz8SGP9P
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
- nabijaczleweli@gmail.com
on_build_status_changed: true
on_build_success: false