forked from r9y9/open_jtalk
-
Notifications
You must be signed in to change notification settings - Fork 9
66 lines (61 loc) · 2 KB
/
ccpp.yaml
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
63
64
65
66
name: C/C++ CI
on:
push:
branches: [ '1.10', '1.11']
pull_request:
branches: [ '1.10', '1.11' ]
jobs:
build:
strategy:
matrix:
build_type: [ Release ]
config:
- os: ubuntu-latest
cc: gcc
cxx: g++
config_generator_type: single
- os: ubuntu-latest
cc: clang
cxx: clang++
config_generator_type: single
- os: macos-latest
cc: gcc
cxx: g++
config_generator_type: single
- os: macos-latest
cc: clang
cxx: clang++
config_generator_type: single
- os: windows-latest
cc: cl
cxx: cl
config_generator_type: multiple
runs-on: ${{ matrix.config.os }}
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
steps:
- uses: actions/checkout@v2
with:
repository: r9y9/hts_engine_API
path: hts_engine_API
- name: Build hts_engine_API
working-directory: ./hts_engine_API/src
run: |
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=ON -S . -B build
cmake --build build --config ${{ matrix.build_type }}
- name: Library Path
id: library_path
uses: haya14busa/action-cond@v1
with:
cond: ${{ matrix.config.config_generator_type == 'multiple' }}
if_true: ../../hts_engine_API/src/build/lib/${{ matrix.build_type }}
if_false: ../../hts_engine_API/src/build/lib
- uses: actions/checkout@v2
with:
path: open_jtalk
- name: Build open_jtalk
working-directory: ./open_jtalk/src
run: |
cmake -D CMAKE_BUILD_TYPE=${{ matrix.build_type }} -D BUILD_SHARED_LIBS=ON -D CMAKE_INCLUDE_PATH=../../hts_engine_API/src/include -D CMAKE_LIBRARY_PATH=${{ steps.library_path.outputs.value }} -S . -B build
cmake --build build --config ${{ matrix.build_type }}