-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.yml
34 lines (29 loc) · 999 Bytes
/
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
install:
- curl -sSf https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe -o rustup-init.exe
- rustup-init.exe -y
- set PATH=%PATH%;%USERPROFILE%\.cargo\bin
- curl -sSf http://releases.llvm.org/3.9.0/LLVM-3.9.0-win64.exe -o LLVM.exe
- 7z x LLVM.exe -oC:\LLVM
- set PATH=%PATH%;C:\LLVM\bin
- set LIBCLANG_PATH=C:\LLVM\bin
build_script:
- cargo build --verbose --release --features clang_3_9
- md deploy
- move target\release\cpp_codegen.exe deploy\cpp_codegen_windows.exe
- copy C:\LLVM\bin\libclang.dll deploy\libclang.dll
- 7z a cpp_codegen_windows.zip .\deploy\*.*
test_script:
- set RUST_BACKTRACE=1
- set RUST_TEST_THREADS=1
- cargo test --verbose -- --nocapture
artifacts:
- path: cpp_codegen_windows.zip
name: Releases
deploy:
description: ''
provider: GitHub
auth_token:
secure: aFuuIGpdj5nf4v6gDDv1bfL3Jhkk4ktsY3SC0WICL+2w2RDOH/xK1HVq2Dl3Ehnp
artifact: cpp_codegen_windows.zip
on:
appveyor_repo_tag: true