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

build-prepackageとbuild-distributableを統合する #1243

Conversation

Hiroshiba
Copy link
Member

内容

関連のPRです。
build.ymlのbuild-prepackageジョブとbuild-distributableジョブを統合し、1つのジョブにします。

実際にビルドしてみてwindowsのzip版が動くことを確認済みです。
https://github.com/Hiroshiba/voicevox/releases/tag/0.15.2-buildtest

関連 Issue

#837

スクリーンショット・動画など

その他

あとはreleaseアップロード周りを統一すればかなり早くなる&リファクタリングもしやすく鳴るはず!!

@Hiroshiba Hiroshiba requested a review from a team as a code owner March 5, 2023 16:13
@Hiroshiba Hiroshiba requested review from y-chan and removed request for a team March 5, 2023 16:13
Comment on lines 131 to 138
# Rename executable file
# NOTE: If the CPU/DirectML/GPU builds have the same package name,
# the NSIS installers and the 7z files have duplicate names.
# For Linux, If they have the same product name,
# the AppImages have duplicate names.
# Files with the same name cannot be uploaded to a single GitHub Release,
# so different package/product names should be used for CPU/DirectML/GPU builds.
- name: Replace package name & version
Copy link
Member Author

@Hiroshiba Hiroshiba Mar 5, 2023

Choose a reason for hiding this comment

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

消える箇所からコメントを転機。(このPRで消える別箇所に同じステップがある)

Comment on lines -361 to +370
mv prepackage VOICEVOX
tar cfz "${{ matrix.compressed_artifact_name }}-${{ env.VOICEVOX_EDITOR_VERSION }}.tar.gz" VOICEVOX/
name="${{ matrix.compressed_artifact_name }}-${{ env.VOICEVOX_EDITOR_VERSION }}"
7z a -ttar $name.tar prepackage/
7z rn $name.tar prepackage/ VOICEVOX/
7z a -tgzip $name.tar.gz $name.tar
rm $name.tar
Copy link
Member Author

@Hiroshiba Hiroshiba Mar 5, 2023

Choose a reason for hiding this comment

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

元はprepackageディレクトリをVOICEVOXディレクトリと改名してzip圧縮してるが、ここ以降でprepackageディレクトリが必要になるため、zip圧縮した後にzip内でディレクトリ名を改名するロジックに変更

@Hiroshiba
Copy link
Member Author

Hiroshiba commented Mar 9, 2023

@y-chan 催促すみません! 時間あるときに見ていただけると・・・!!

Copy link
Member

@y-chan y-chan left a comment

Choose a reason for hiding this comment

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

LGTM

@Hiroshiba
Copy link
Member Author

コンフリクト解消してテストも通ったのでたぶん大丈夫そう!
ということでマージします!!

@Hiroshiba Hiroshiba merged commit 62c5864 into VOICEVOX:main Mar 13, 2023
@Hiroshiba Hiroshiba deleted the build-prepackageとbuild-distributableを統合する branch March 13, 2023 22:00
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