Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust]OpenJtalkのbindingsを実装した #162

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
0d7202a
openjtalk-sysを実装した
qwerty2501 Jun 22, 2022
d137763
Automated generate bindings for i686-pc-windows-msvc
qwerty2501 Jun 22, 2022
2733323
Automated generate bindings for x86_64-pc-windows-msvc
qwerty2501 Jun 22, 2022
4c1d896
Automated generate bindings for aarch64-apple-darwin
qwerty2501 Jun 22, 2022
a0f3abd
Automated generate bindings for x86_64-apple-darwin
qwerty2501 Jun 22, 2022
ea60bce
Automated generate bindings for x86_64-unknown-linux-gnu
qwerty2501 Jun 22, 2022
1661392
自動生成コードなのでclippyチェックを無効化した
qwerty2501 Jun 22, 2022
33f20cd
openjtalkを実装した
qwerty2501 Jun 22, 2022
c5c57bf
windowsのみopenjtalkをリンクするようにした
qwerty2501 Jun 22, 2022
9c88071
link-serachを追加した
qwerty2501 Jun 22, 2022
294dd57
openjtalk-sysが変更された場合に対応する旨のTODOを記載した
qwerty2501 Jun 25, 2022
fb37471
コード生成をmatrixを使用するに変更した
qwerty2501 Jun 25, 2022
66800ca
Update .github/workflows/gen_bind.yml
qwerty2501 Jun 25, 2022
8c20252
headerファイル名typoを修正した
qwerty2501 Jun 26, 2022
46eb0df
openjtalkを直接出力するように変更した
qwerty2501 Jun 26, 2022
e4575a6
workflow中のdescriptionは認められていないので削除
qwerty2501 Jun 26, 2022
43b1c4c
added get-cmake
qwerty2501 Jun 26, 2022
92587cb
downgrade cmake
qwerty2501 Jun 26, 2022
2e504c2
link_cplusplusを追加した
qwerty2501 Jun 26, 2022
e576f54
added include dir
qwerty2501 Jun 26, 2022
c7601d4
add ssh
qwerty2501 Jun 26, 2022
aa1268f
includeファイルを出力するようにした
qwerty2501 Jun 26, 2022
4334a71
add blocklist_type
qwerty2501 Jun 26, 2022
37a8b33
Automated generate bindings for x86_64-unknown-linux-gnu
qwerty2501 Jun 26, 2022
54e9123
Automated generate bindings for aarch64-apple-darwin
qwerty2501 Jun 26, 2022
a8da9bd
Automated generate bindings for x86_64-apple-darwin
qwerty2501 Jun 26, 2022
05e37dc
Automated generate bindings for i686-pc-windows-msvc
qwerty2501 Jun 26, 2022
1801c29
Automated generate bindings for x86_64-pc-windows-msvc
qwerty2501 Jun 26, 2022
5e43c32
Merge pull request #48 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
827a736
Merge pull request #49 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
7ebe0c0
Merge pull request #50 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
a2598f4
Merge pull request #51 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
d09a906
Merge pull request #52 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
21dd586
自動生成部分とwrapper部分のPRを分けたいため一度wrapper部分のコードを取り除く
qwerty2501 Jun 26, 2022
63c3f62
テストコードを出力しないように修正
qwerty2501 Jun 26, 2022
65fa785
stdio.hを取り除いた
qwerty2501 Jun 26, 2022
b2d0802
remove block_types
qwerty2501 Jun 26, 2022
efaf7a6
Automated generate bindings for x86_64-unknown-linux-gnu
qwerty2501 Jun 26, 2022
25ac608
Automated generate bindings for x86_64-apple-darwin
qwerty2501 Jun 26, 2022
4b097d9
Automated generate bindings for i686-pc-windows-msvc
qwerty2501 Jun 26, 2022
2a6e485
Automated generate bindings for aarch64-apple-darwin
qwerty2501 Jun 26, 2022
d27384e
Automated generate bindings for x86_64-pc-windows-msvc
qwerty2501 Jun 26, 2022
3d2c8e4
Merge pull request #59 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
b58362e
Merge pull request #60 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
c773295
Merge pull request #61 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
a2df5ac
Merge pull request #62 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
234c2a4
Merge pull request #63 from qwerty2501/feature/add_openjtalk_auto_gen…
qwerty2501 Jun 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/actions/auto_gen_bind_pr/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "auto_gen_bind_pr"
description: "bindコードを生成するためのCIアクションをしてPRを送る"
inputs:
triple:
description: "cargo build target"
required: true
runs:
using: "composite"
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install triple
run: rustup target add ${{ inputs.triple }}
shell: bash
- uses: Swatinem/rust-cache@v1
with:
# cargoのキャシュが原因でテストが失敗してることが考えられる場合はバージョン部分を変更する
key: "v1-cargo-test-cache-${{ inputs.triple }}"
- name: gen bind
run: cargo build --target ${{ inputs.triple }} -p openjtalk-sys --features generate-bindings
shell: bash
- name: check
run: git status -s | grep -E "M|A"
shell: bash
- name: create_pr
if: success()
id: cpr
uses: peter-evans/create-pull-request@v4
with:
commit-message: Automated generate bindings for ${{ inputs.triple }}
branch: ${{ steps.extract_branch.outputs.branch }}_auto_gen_bindings_${{ inputs.triple }}
delete-branch: true
title: Automated generate bindings for ${{ inputs.triple }}
body: |
Automated generate bindings for ${{ inputs.triple }}
34 changes: 34 additions & 0 deletions .github/workflows/gen_bind.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gen_bind
qwerty2501 marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
paths:
- "crates/openjtalk-sys/openjtalk/src/*"
- "crates/openjtalk-sys/openjtalk/CMakeLists.txt"
- "crates/openjtalk-sys/build.rs"
- ".github/workflows/gen_bind.yml"
- ".github/actions/auto_gen_bind_pr/action.yml"
jobs:
generate_bind:
strategy:
fail-fast: false
matrix:
target:
- os: windows-latest
triple: x86_64-pc-windows-msvc
- os: windows-latest
triple: i686-pc-windows-msvc
- os: ubuntu-latest
triple: x86_64-unknown-linux-gnu
- os: macos-latest
triple: x86_64-apple-darwin
- os: macos-latest
triple: aarch64-apple-darwin
runs-on: ${{ matrix.target.os }}
steps:
- uses: lukka/[email protected]
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: ./.github/actions/auto_gen_bind_pr
with:
triple: ${{ matrix.target.triple }}
194 changes: 194 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[workspace]
members = ["crates/voicevox_core"]
members = ["crates/voicevox_core", "crates/openjtalk-sys"]
Loading