Skip to content

cbindgenのinclude_versionを有効化する#519

Merged
Hiroshiba merged 3 commits into
VOICEVOX:mainfrom
qryxip:enable-include-version-of-cbindgen
Jun 12, 2023
Merged

cbindgenのinclude_versionを有効化する#519
Hiroshiba merged 3 commits into
VOICEVOX:mainfrom
qryxip:enable-include-version-of-cbindgen

Conversation

@qryxip

@qryxip qryxip commented Jun 11, 2023

Copy link
Copy Markdown
Member

内容

  1. cbindgenのinclude_versionを有効化し、CIでxtaskとcbindgen.exeの結果を突き合せるとこではcbindgen.exeのバージョンをCargo.lockに合わせるようにします。
  2. cbindgenが生成するvoicevox_core.hをこのリポジトリに追加する #493 以降もCIでcbindgenを呼んでいるところが何箇所かあったので、ついでに削減します。

こういうのはあった方がいいかなと思いました。

 #ifndef VOICEVOX_CORE_INCLUDE_GUARD
 #define VOICEVOX_CORE_INCLUDE_GUARD

+/* Generated with cbindgen:0.24.3 */
+
 #ifdef __cplusplus
 #include <cstdint>
 #else // __cplusplus

関連 Issue

その他

#497 とはコンフリクトしなくても #382 としそう…

Comment on lines -13 to -14
Windows)
cargo install cbindgen --version ${{ inputs.version }};;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

このcompositeアクションはubuntu-latestの一箇所からしか呼ばれなくなりこの分岐も要らなくなったので、アクションごと削除してインラインに書くようにした。

@Hiroshiba Hiroshiba Jun 12, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ubuntuからどころか、そもそもこのcompositeが呼ばれなくなった感じかな?
cargo insfallで一緒に入るようになったんでしたっけ。便利。

↑勘違かも、直接コマンド実行する形…?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

はい。この真下のmacOS | Linux )の所をtest.ymlに直書きする形ですね…

@Hiroshiba Hiroshiba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

1箇所しか使われてないのでcompositeを崩すのはありかなと思いました!
バージョンをcargoから持ってくる周りがちょい大変だけど助かります!!

@Hiroshiba Hiroshiba merged commit b8c1b31 into VOICEVOX:main Jun 12, 2023
Hiroshiba added a commit that referenced this pull request Jun 12, 2023
* Docs: 事例紹介にvoicevoxcore.goを追加 (#498)

Docs: 事例紹介のvoicevoxcore.goを追加

* 間違った`char*`の解放を明示的に拒否する (#500)

* Cargo.tomlをフォーマットする (#504)

* Update rust toolchain 1.70.0 (#506)

Co-authored-by: PickledChair <PickledChair@users.noreply.github.com>
Co-authored-by: Ryo Yamashita <qryxip@gmail.com>

* Rust APIのbuild.rsを抹消する (#508)

* Python APIでは`panic=unwind`にする (#505)

* Python APIでは`panic=unwind`にする

* C APIは`-C panic=abort`でビルドする

* READMEのスペースが足りてなかった (#511)

* windows-latestでなぜかdownload_testが落ちるのを改修 (#517)

* windows-latestでなぜかdownload_testが落ちるのを修正

* a

* cbindgenに`fn.args=vertical`を設定し、`__declspec`の後の空行を消す (#518)

* `__declspec(dllimport)`と関数定義の隙間の空行を消す

* `fn.args="vertical"`を設定

* cbindgenの`include_version`を有効化する (#519)

* cbindgenの`include_version`を有効化する

* jobをリネーム

* 誤字

---------

Co-authored-by: Kota Amasaka <in9lude@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: PickledChair <PickledChair@users.noreply.github.com>
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants