Skip to content

Commit

Permalink
Change: javaをmatrixに生やしてそっちを使う
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 3, 2024
1 parent e479d58 commit 030c36e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
"artifact_name": "windows-x64",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": false
},
{
Expand All @@ -73,6 +74,7 @@ jobs:
"artifact_name": "windows-x86",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": true
},
{
Expand All @@ -81,6 +83,7 @@ jobs:
"artifact_name": "linux-x64",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": false
},
{
Expand All @@ -89,6 +92,7 @@ jobs:
"artifact_name": "linux-arm64",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": true
},
{
Expand All @@ -97,6 +101,7 @@ jobs:
"artifact_name": "android-arm64",
"c_release_format": "plain-cdylib",
"python_whl": false,
"java": true,
"can_skip_in_simple_test": true
},
{
Expand All @@ -105,6 +110,7 @@ jobs:
"artifact_name": "android-x86_64",
"c_release_format": "plain-cdylib",
"python_whl": false,
"java": true,
"can_skip_in_simple_test": true
},
{
Expand All @@ -113,6 +119,7 @@ jobs:
"artifact_name": "osx-arm64",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": false
},
{
Expand All @@ -121,6 +128,7 @@ jobs:
"artifact_name": "osx-x64",
"c_release_format": "plain-cdylib",
"python_whl": true,
"java": true,
"can_skip_in_simple_test": true
},
{
Expand All @@ -129,6 +137,7 @@ jobs:
"artifact_name": "ios-arm64-cpu",
"c_release_format": "ios-xcframework",
"python_whl": false,
"java": false,
"can_skip_in_simple_test": true
},
{
Expand All @@ -137,6 +146,7 @@ jobs:
"artifact_name": "ios-arm64-cpu-sim",
"c_release_format": "ios-xcframework",
"python_whl": false,
"java": false,
"can_skip_in_simple_test": true
},
{
Expand All @@ -145,6 +155,7 @@ jobs:
"artifact_name": "ios-x64-cpu",
"c_release_format": "ios-xcframework",
"python_whl": false,
"java": false,
"can_skip_in_simple_test": true
}
]'
Expand Down Expand Up @@ -263,7 +274,7 @@ jobs:
fi
echo "whl=$(find ./target/wheels -type f)" >> "$GITHUB_OUTPUT"
- name: build voicevox_core_java_api
if: ${{ !contains(matrix.target, 'ios') }}
if: ${{ matrix.java }}
run: |
function build() {
cargo build -p voicevox_core_java_api -vv --target ${{ matrix.target }} --release
Expand Down Expand Up @@ -325,7 +336,7 @@ jobs:
${{ steps.build-voicevox-core-python-api.outputs.whl }}
target_commitish: ${{ github.sha }}
- name: Upload voicevox_core_java_api artifact
if: fromJson(needs.config.outputs.deploy) && !contains(matrix.target, 'ios')
if: fromJson(needs.config.outputs.deploy) && matrix.java
uses: actions/upload-artifact@v4
with:
name: voicevox_core_java_api-${{ matrix.artifact_name }}
Expand Down Expand Up @@ -451,7 +462,7 @@ jobs:
artifact_name=$1
target=$2
root=$(echo "$1" | grep -q android && echo jniLibs || echo dll)
dest="lib/src/main/resources/$root/$target"
dest=lib/src/main/resources/$root/$target
case "$artifact_name" in
windows-*) ext=dll ;;
osx-*) ext=dylib ;;
Expand Down

0 comments on commit 030c36e

Please sign in to comment.