-
-
Notifications
You must be signed in to change notification settings - Fork 983
/
.appveyor.yml
50 lines (43 loc) · 1.07 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
version: "{build}"
skip_branch_with_pr: true
skip_tags: true
build: off
os: Visual Studio 2019
environment:
matrix:
# Build Node.js
- nodejs_version: stable
- nodejs_version: 20
- nodejs_version: 18
# Build plain C++
- nodejs_version: none
platform:
- x64
- x86
for:
- matrix:
except:
- nodejs_version: none
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm -g i npm@latest
build_script:
- appveyor-retry call npm install --build-from-source
test_script:
- npm test
- matrix:
only:
- nodejs_version: none
build_script:
- SET arch=%platform%
- IF "%platform%"=="x86" SET arch=Win32
- cmake -A%arch% -S. -Bbuild -DCMAKE_INSTALL_PREFIX:PATH=. -DENABLE_GTEST:BOOL=ON -DENABLE_BENCHMARK:BOOL=ON -DCMAKE_BUILD_TYPE=Release
- cmake --build build --config Release --target install
test_script:
- cd build
- ctest --verbose -C Release
after_build:
- 7z a OpenCC.zip build/bin build/include build/lib build/share
artifacts:
- path: OpenCC.zip
name: OpenCC