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.
Github Actionsでshell: bashを毎回書かなくても良いようにする (VOICEVOX#528)
- Loading branch information
Showing
9 changed files
with
36 additions
and
33 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
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Issue Labeler | |
on: | ||
issues: | ||
types: [opened] | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
triage: | ||
|
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
- "*" | ||
- "**/*" | ||
pull_request: | ||
defaults: | ||
run: | ||
shell: bash | ||
jobs: | ||
shellcheck: | ||
runs-on: ubuntu-22.04 | ||
|
@@ -102,7 +105,6 @@ jobs: | |
# cargoのキャッシュが原因でテストが失敗する場合はバージョン部分をカウントアップすること | ||
key: "v2-cargo-test-cache-${{ matrix.features }}-${{ matrix.os }}" | ||
- name: Run cargo test | ||
shell: bash | ||
run: cargo test -vv --features ,${{ matrix.features }} -- --include-ignored | ||
|
||
c-header: | ||
|
@@ -173,12 +175,10 @@ jobs: | |
uses: jwlawson/[email protected] | ||
- name: Install build dependencies | ||
if: startsWith(matrix.os, 'ubuntu') | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y cmake | ||
- name: Build | ||
shell: bash | ||
run: | | ||
cd example/cpp/unix | ||
cmake -S . -B build | ||
|
@@ -193,6 +193,9 @@ jobs: | |
SOLUTION_FILE_PATH: example\cpp\windows\windows_example.sln | ||
# Configuration type to build. | ||
BUILD_CONFIGURATION: Debug | ||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -204,7 +207,7 @@ jobs: | |
run: cargo build -p voicevox_core_c_api -vv | ||
- name: 必要なfileをexampleのディレクトリに移動させる | ||
run: | | ||
mkdir example/cpp/windows/simple_tts/lib/x64 | ||
mkdir -p example/cpp/windows/simple_tts/lib/x64 | ||
cp -v crates/voicevox_core_c_api/include/voicevox_core.h example/cpp/windows/simple_tts/ | ||
cp target/debug/voicevox_core.dll.lib example/cpp/windows/simple_tts/lib/x64/voicevox_core.lib | ||
|
@@ -237,14 +240,10 @@ jobs: | |
uses: ./.github/actions/rust-toolchain-from-file | ||
- name: venv作成 | ||
uses: ./.github/actions/create-venv | ||
- shell: bash | ||
run: pip install -r ./crates/voicevox_core_python_api/requirements.txt | ||
- shell: bash | ||
run: cargo build -p voicevox_core_c_api -vv | ||
- shell: bash | ||
run: maturin build --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked | ||
- shell: bash | ||
run: maturin develop --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked | ||
- run: pip install -r ./crates/voicevox_core_python_api/requirements.txt | ||
- run: cargo build -p voicevox_core_c_api -vv | ||
- run: maturin build --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked | ||
- run: maturin develop --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked | ||
- name: 必要なDLLをカレントディレクトリにコピー | ||
run: | | ||
cp -v target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/onnxruntime.dll . || true | ||
|
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 |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
- "**" | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
typos: | ||
runs-on: ubuntu-latest | ||
|
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