-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
appveyor.yml
58 lines (47 loc) · 1.52 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
image:
- Visual Studio 2022
version: 16.0.0-{build}
skip_tags: false
platform: x64
configuration: Release
clone_folder: C:\cargo-update
environment:
matrix:
- TOOLCHAIN: stable
- TOOLCHAIN: 1.70.0
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 zip"
-
- mkdir target\release\deps
- cp C:\Windows\System32\ntdll.dll target\release\deps
-
- curl -SL https://win.rustup.rs/ -oC:\rustup-init.exe
- C:\rustup-init.exe -y --default-host="x86_64-pc-windows-gnu" --default-toolchain="%TOOLCHAIN%"
build: off
build_script:
- cargo build --verbose --release
-
- mkdir cargo-update-v16.0.0
- cp target\release\cargo-install-update.exe target\release\cargo-install-update-config.exe cargo-update-v16.0.0\
- strip --strip-all --remove-section=.comment --remove-section=.note cargo-update-v16.0.0/cargo-install-update.exe cargo-update-v16.0.0/cargo-install-update-config.exe
- zip -9r cargo-update-v16.0.0.zip cargo-update-v16.0.0
test: off
test_script:
- cargo test --verbose --release
artifacts:
- path: cargo-update-v16.0.0.zip
deploy:
provider: GitHub
artifact: cargo-update-v16.0.0.zip
auth_token:
secure: FNqRpbXgjNh7VrtHCIGadt7Pwv9HGq4kyUCQFueRLJvQCCWWWgko3PwiZvYlaAEG
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
- nabijaczleweli@gmail.com
on_build_status_changed: true