-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat-add-supported-features-to-metas
- Loading branch information
Showing
64 changed files
with
1,772 additions
and
1,000 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Install cargo-deny | ||
description: cargo-denyをインストールする。 | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Install cargo-binstall | ||
uses: taiki-e/install-action@cargo-binstall | ||
- name: Install cargo-deny | ||
shell: bash | ||
run: cargo binstall cargo-deny@^0.16 --no-confirm --log-level debug |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# 依存ライブラリを監査する。 | ||
# | ||
# RustSec Advisory Databaseに登録された、あるいは単にヤンクされたクレートを検出する。 | ||
# 検出されるものは脆弱性(`vulnerability`)のみとは限らない。 | ||
# 依存ライブラリが単に"unmaintained"とされたりヤンクされたりしても反応する。 | ||
|
||
name: audit | ||
|
||
# データベースへの登録とクレートのヤンクはこちらの依存ライブラリの編集と関係なく起きるため、`push` | ||
# と`pull_request`はトリガーにしない。 | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 15 * * *' | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install cargo-deny | ||
uses: ./.github/actions/install-cargo-deny | ||
- name: cargo-deny | ||
run: cargo deny --all-features check -s advisories |
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 |
---|---|---|
|
@@ -182,11 +182,11 @@ jobs: | |
git fetch private refs/tags/${{ env.PRODUCTION_REPOSITORY_TAG }} | ||
git -c user.name=dummy -c [email protected] merge FETCH_HEAD | ||
) > /dev/null 2>&1 | ||
- name: Set up Python 3.8 | ||
- name: Set up Python 3.10 | ||
if: matrix.python_whl | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
python-version: "3.10" | ||
architecture: ${{ contains(matrix.artifact_name,'x86') && 'x86' || 'x64' }} | ||
- name: set up ${{ matrix.target }} | ||
uses: ./.github/actions/rust-toolchain-from-file | ||
|
@@ -225,7 +225,9 @@ jobs: | |
- name: set cargo version | ||
run: | | ||
cargo set-version "$VERSION" --exclude voicevox_core_python_api --exclude downloader --exclude xtask | ||
if ${{ matrix.python_whl }}; then cargo set-version "$VERSION" -p voicevox_core_python_api; fi | ||
if ${{ matrix.python_whl }}; then | ||
sed -i_ 's/version = "\(0\.0\.0\)"/version = "'"$VERSION"'"/' ./crates/voicevox_core_python_api/pyproject.toml | ||
fi | ||
- name: cache target | ||
uses: Swatinem/rust-cache@v2 | ||
if: ${{ !inputs.is_production }} | ||
|
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# 依存ライブラリのライセンスを確認する。 | ||
# | ||
# `advisories`以外についてcargo-denyを実行する。 | ||
|
||
name: licenses | ||
|
||
# 外部からの貢献者の負担を減らすため、PR時点では不適合になることを許容する。その代わりmainブランチで | ||
# は毎回本ワークフローを実行する。 | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
licenses: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install cargo-deny | ||
uses: ./.github/actions/install-cargo-deny | ||
- name: cargo-deny | ||
run: cargo deny --all-features check -s bans licenses sources |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mod adjust; | ||
|
||
pub(crate) use self::adjust::{ensure_minimum_phoneme_length, pad_decoder_feature}; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//! 推論操作の前処理と後処理。 | ||
mod post; | ||
mod pre; | ||
|
||
pub(crate) use self::{post::ensure_minimum_phoneme_length, pre::pad_decoder_feature}; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//! 推論の出力の後処理。 | ||
pub(crate) fn ensure_minimum_phoneme_length(mut output: Vec<f32>) -> Vec<f32> { | ||
const PHONEME_LENGTH_MINIMAL: f32 = 0.01; | ||
|
||
for output_item in output.iter_mut() { | ||
if *output_item < PHONEME_LENGTH_MINIMAL { | ||
*output_item = PHONEME_LENGTH_MINIMAL; | ||
} | ||
} | ||
output | ||
} |
Oops, something went wrong.