-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
53 lines (45 loc) · 1.55 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
version: 0.1.0-{build}
skip_tags: false
platform: x64
configuration: Release
clone_folder: C:\sudoku-backend
install:
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%;C:\Users\appveyor\.cargo\bin
- bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- bash -lc "pacman --noconfirm -Sy"
- bash -lc "pacman --noconfirm -S mingw-w64-x86_64-toolchain"
-
# Fix undefined references to __acrt_iob_func()
# Ref: https://github.com/nabijaczleweli/cargo-update/issues/74
- sed -rie "s/#define std([[:alpha:]]+)[[:space:]]+\(__acrt_iob_func\(([[:digit:]]+)\)\)/#define std\1 (\&__iob_func()[\2])/" "C:\msys64\mingw64\x86_64-w64-mingw32\include\stdio.h"
-
- curl -SL https://win.rustup.rs/ -oC:\rustup-init.exe
- C:\rustup-init.exe -y --default-host="x86_64-pc-windows-gnu" --default-toolchain="nightly"
build: off
build_script:
- git submodule update --init --recursive
- cd api
- cargo build --verbose --release
- cp target\release\sudoku-backend.exe ../sudoku-backend-v0.1.0.exe
- strip --strip-all --remove-section=.comment --remove-section=.note ../sudoku-backend-v0.1.0.exe
- cd ..
test: off
test_script:
- cd api
- cargo test --verbose --release
- cd ..
artifacts:
- path: sudoku-backend-v0.1.0.exe
deploy:
provider: GitHub
artifact: sudoku-backend-v0.1.0.exe
auth_token:
secure: 8IJ+W2xEbPByiz3O1iZX8ZYVgGZdyKNe4vXXhe1/6LeROCcSih6apJ8PxoBtuXYu
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
- nabijaczleweli@gmail.com
on_build_status_changed: true
on_build_success: false