-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
59 lines (50 loc) · 1.94 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
version: 2.0.2-{build}
skip_tags: false
platform: x64
configuration: Release
clone_folder: C:\pir-8-emu
install:
- curl -SL https://api.github.com/repos/nabijaczleweli/BearLibTerminal.rs/releases/latest | grep _url | grep BearLibTerminal.dll | sed "s/ /\n/g" | grep . | tail -1 | sed s/\x22//g > TEMP
- set/p BLT_LINK=<TEMP
- curl -L %BLT_LINK% -oC:\BearLibTerminal.dll
-
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%;C:\Users\appveyor\.cargo\bin
- set LIBRARY_PATH=C:\
-
- bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- bash -lc "pacman --noconfirm -Sy"
- bash -lc "pacman --noconfirm -S mingw-w64-x86_64-toolchain zip"
-
# Fix undefined references to __acrt_iob_func()
- 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"
build: off
build_script:
- make
- cargo build --verbose --release
-
- mkdir pir-8-emu-v2.0.2
- cp target\release\pir-8-as.exe target\release\pir-8-disasm.exe target\release\pir-8-emu.exe pir-8-emu-v2.0.2\
- cp C:\BearLibTerminal.dll pir-8-emu-v2.0.2\
- strip --strip-all --remove-section=.comment --remove-section=.note pir-8-emu-v2.0.2/pir-8-as.exe pir-8-emu-v2.0.2/pir-8-disasm.exe pir-8-emu-v2.0.2/pir-8-emu.exe
- zip -9r pir-8-emu-v2.0.2.zip pir-8-emu-v2.0.2
test: off
test_script:
# The tests would finish successfully but AppVeyor would report a failure
- cargo test --verbose --release || true
artifacts:
- path: pir-8-emu-v2.0.2.zip
deploy:
provider: GitHub
artifact: /.*\.zip/
auth_token:
secure: 9T2phicbTZgfqYkyrP8gVdmtm/1JciPaR3X3diSLfpQTb70lLjX61QKfGjAxfOxI
on:
appveyor_repo_tag: true
notifications:
- provider: Email
to:
on_build_status_changed: true