-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathappveyor.yml
62 lines (52 loc) · 2.01 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
version: 0.9.0-{build}
branches:
except:
- doc
skip_tags: false
platform: x64
configuration: Release
clone_folder: C:\checksums
install:
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%;C:\Users\appveyor\.cargo\bin
# https://www.msys2.org/news/#2020-05-17-32-bit-msys2-no-longer-actively-supported
- curl -SL http://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz -oC:\msys2-keyring.txz
- curl -SL http://repo.msys2.org/msys/x86_64/msys2-keyring-1~20210904-1-any.pkg.tar.zst -oC:\msys2-keyring.tzst
- curl -SL http://repo.msys2.org/msys/x86_64/zstd-1.4.4-2-x86_64.pkg.tar.xz -oC:\zstd.txz
- curl -SL http://repo.msys2.org/msys/x86_64/pacman-5.2.2-5-x86_64.pkg.tar.xz -oC:\pacman.txz
- pacman --noconfirm -U C:\msys2-keyring.txz
- pacman --noconfirm -U C:\zstd.txz
- pacman --noconfirm -U C:\pacman.txz
- pacman --noconfirm -U C:\msys2-keyring.tzst
- bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- bash -lc "pacman --noconfirm -Sy pacman"
- bash -lc "pacman --noconfirm -Sy"
- bash -lc "pacman --noconfirm -Su"
- bash -lc "pacman --noconfirm -Sy"
- bash -lc "pacman --noconfirm -S mingw-w64-x86_64-toolchain"
-
- curl -SL https://win.rustup.rs/ -oC:\rustup-init.exe
- C:\rustup-init.exe -y --default-host="x86_64-pc-windows-gnu"
build: off
build_script:
- git submodule update --init --recursive
- cargo build --verbose --release
- cp target\release\checksums.exe checksums-v0.9.0.exe
- strip --strip-all --remove-section=.comment --remove-section=.note checksums-v0.9.0.exe
test: off
test_script:
- cargo test --verbose --release
- target\release\checksums -cr --ignore target --ignore .git && cat checksums.hash
artifacts:
- path: checksums-v0.9.0.exe
deploy:
provider: GitHub
artifact: checksums-v0.9.0.exe
auth_token:
secure: /nOIck9ZBpNU/LWXMUfpnQRRuxFPLHQrkbToGo6M3s0YJLXJYtAU7YS4q/LBelIU
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
on_build_status_changed: true