-
Notifications
You must be signed in to change notification settings - Fork 310
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
test:e2eをlinuxとmacでも動くように #1415
Merged
The head ref may contain hidden characters: "\u30C6\u30B9\u30C8\u306Blinux\u3068mac\u3092\u8FFD\u52A0\u3059\u308B"
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
a752f57
test:e2eをlinuxとmacでも動くように
Hiroshiba fffb94d
忘れてた
Hiroshiba 3bf589a
macOS
Hiroshiba dfe0ba5
xvfb-run
Hiroshiba bfc584b
macはURLが違う
Hiroshiba 0bf151b
180000
Hiroshiba 3fa05ae
nemo
Hiroshiba 29f7108
a
Hiroshiba b0ee985
実行権限を付与
Hiroshiba e736489
a
Hiroshiba 4bf2a46
Merge branch 'main' into テストにlinuxとmacを追加する
Hiroshiba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -2,6 +2,10 @@ name: "Download VOICEVOX ENGINE" | |
description: | | ||
VOICEVOX ENGINEをダウンロードし、指定したディレクトリに展開する。 | ||
inputs: | ||
repo: | ||
description: "リポジトリ名。デフォルトはVOICEVOX/voicevox_engine。" | ||
required: false | ||
default: "VOICEVOX/voicevox_engine" | ||
version: | ||
description: "VOICEVOX ENGINEのバージョン。latest(デフォルト)、prerelease-latest、バージョン番号(例:0.14.4)で指定できる。" | ||
required: false | ||
|
@@ -37,7 +41,7 @@ runs: | |
- name: Get version | ||
shell: bash | ||
run: | | ||
curl -s https://api.github.com/repos/voicevox/voicevox_engine/releases \ | ||
curl -s https://api.github.com/repos/${{ inputs.repo }}/releases \ | ||
-H 'authorization: Bearer ${{ github.token }}' \ | ||
-H 'content-type: application/json' > $TEMPDIR/releases.json | ||
|
||
|
@@ -52,8 +56,8 @@ runs: | |
shell: bash | ||
run: | | ||
if [ "${{ inputs.target }}" = "" ]; then | ||
OS="${{ runner.os }}" | ||
TARGET="${OS,,}-cpu" # 小文字にする | ||
OS=$(echo "${{ runner.os }}" | tr "[:upper:]" "[:lower:]") # 小文字にする | ||
TARGET="$OS-cpu" | ||
else | ||
TARGET="${{ inputs.target }}" | ||
fi | ||
|
@@ -93,4 +97,5 @@ runs: | |
else | ||
echo "run_path=$DEST/run" >> $GITHUB_OUTPUT | ||
fi | ||
cat $TEMPDIR/target.json | jq -r '.tag_name' | sed -e 's_^_version=_' >> $GITHUB_OUTPUT | ||
echo "version=$(jq -r '.tag_name' $TEMPDIR/target.json)" >> $GITHUB_OUTPUT | ||
Comment on lines
-96
to
+100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ただのリファクタリング |
||
|
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MacOSで動かなかったので修正
(デフォルトのBashのバージョンが低いらしい)