forked from VOICEVOX/voicevox_core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Hiroshiba <[email protected]> Co-authored-by: shigobu <[email protected]> Co-authored-by: kasamatsu <[email protected]>
- Loading branch information
1 parent
9592bae
commit aad2dcf
Showing
5 changed files
with
94 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -166,6 +166,43 @@ jobs: | |
cmake -S . -B build | ||
cmake --build build | ||
build-windows-cpp-example: | ||
strategy: | ||
fail-fast: false | ||
runs-on: windows-latest | ||
env: | ||
# Path to the solution file relative to the root of the project. | ||
SOLUTION_FILE_PATH: example\cpp\windows\windows_example.sln | ||
# Configuration type to build. | ||
BUILD_CONFIGURATION: Debug | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Rust | ||
uses: ./.github/actions/rust-toolchain-from-file | ||
- name: Install cargo-binstall | ||
uses: taiki-e/install-action@cargo-binstall | ||
- name: Install cbindgen | ||
uses: ./.github/actions/cargo-binstall-cbindgen | ||
- name: build voicevox_core_c_api | ||
run: cargo build -p voicevox_core_c_api -vv | ||
- name: voicevox_core.hを生成 | ||
run: cbindgen --crate voicevox_core_c_api -o ./example/cpp/windows/simple_tts/voicevox_core.h | ||
- name: 必要なfileをexampleのディレクトリに移動させる | ||
run: | | ||
mkdir example/cpp/windows/simple_tts/lib/x64 | ||
cp target/debug/voicevox_core.dll.lib example/cpp/windows/simple_tts/lib/x64/voicevox_core.lib | ||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: Restore NuGet packages | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} | ||
|
||
build-python-api: | ||
strategy: | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters