Skip to content

Commit

Permalink
コメントの削除
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomimimi committed Feb 5, 2024
1 parent 7d89087 commit 0c62e3d
Showing 1 changed file with 1 addition and 84 deletions.
85 changes: 1 addition & 84 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -378,90 +378,7 @@ jobs:
path: artifact/voicevox_core-aarch64-apple-ios
- name: Create xcframework
run: |
build_util/ios_xcframework.bash
# - name: Create aarch64 Framework
# run: |
# mkdir -p "Framework-aarch64/voicevox_core.framework/Headers"
# cp -vr crates/voicevox_core_c_api/xcframework/Frameworks/aarch64/ Framework-aarch64/
# cp -v artifact/voicevox_core-aarch64-apple-ios/voicevox_core.h \
# Framework-aarch64/voicevox_core.framework/Headers/voicevox_core.h
# cp -v artifact/voicevox_core-aarch64-apple-ios/libvoicevox_core.dylib \
# Framework-aarch64/voicevox_core.framework/voicevox_core
#
# - name: Change aarch64 @rpath
# run: |
# # 自身への@rpathを変更
# install_name_tool -id @rpath/voicevox_core.framework/voicevox_core Framework-aarch64/voicevox_core.framework/voicevox_core

# 依存ライブラリを調べると@rpath/libonnxruntime.A.BB.C.dylibの文字列があるので、
# これを@rpath/onnxruntime.framework/onnxruntimeに変更したい。

# dylib名取得
# output=$(otool -L Framework-aarch64/voicevox_core.framework/voicevox_core)
# matched_line=$(echo "$output" | grep "@rpath" | grep "libonnxruntime")
# if [[ $matched_line ]]; then
# if [[ $matched_line =~ (@rpath/([^ ]+\.dylib)) ]]; then
# dylib_string=${BASH_REMATCH[2]}
# else
# echo "Expected pattern not found in the matched line"
# echo "$output"
# exit 1
# fi
# else
# echo "No line containing '@rpath' and 'libonnxruntime' found"
# echo "$output"
# exit 1
# fi
# echo "onnx dylib file name: $dylib_string"

# onnxruntimeへの@rpathを変更
# install_name_tool -change "@rpath/$dylib_string" "@rpath/onnxruntime.framework/onnxruntime" Framework-aarch64/voicevox_core.framework/voicevox_core

# - name: Create sim Framework
# run: |
# mkdir -p "Framework-sim/voicevox_core.framework/Headers"
# cp -vr crates/voicevox_core_c_api/xcframework/Frameworks/sim/ Framework-sim/
# cp -v artifact/voicevox_core-aarch64-apple-ios/voicevox_core.h \
# Framework-sim/voicevox_core.framework/Headers/voicevox_core.h
# lipo -create artifact/voicevox_core-x86_64-apple-ios/libvoicevox_core.dylib \
# artifact/voicevox_core-aarch64-apple-ios-sim/libvoicevox_core.dylib \
# -output Framework-sim/voicevox_core.framework/voicevox_core
#
# - name: Change sim @rpath
# run: |
# 自身への@rpathを変更
# install_name_tool -id @rpath/voicevox_core.framework/voicevox_core Framework-sim/voicevox_core.framework/voicevox_core

# dylib名取得(方針はaarch64同じ)
# output=$(otool -L Framework-sim/voicevox_core.framework/voicevox_core)
# matched_line=$(echo "$output" | grep "@rpath" | grep "libonnxruntime")
# if [[ $matched_line ]]; then
# if [[ $matched_line =~ (@rpath/([^ ]+\.dylib)) ]]; then
# dylib_string=${BASH_REMATCH[2]}
# else
# echo "Expected pattern not found in the matched line"
# echo "$output"
# exit 1
# fi
# else
# echo "No line containing '@rpath' and 'libonnxruntime' found"
# echo "$output"
# exit 1
# fi
# echo "onnx dylib file name: $dylib_string"

# onnxruntimeへの@rpathを変更
# install_name_tool -change "@rpath/$dylib_string" "@rpath/onnxruntime.framework/onnxruntime" Framework-sim/voicevox_core.framework/voicevox_core

# - name: Create XCFramework
# run: |
# mkdir -p "artifact/${{ env.ASSET_NAME }}"
# xcodebuild -create-xcframework \
# -framework "Framework-sim/voicevox_core.framework" \
# -framework "Framework-aarch64/voicevox_core.framework" \
# -output "artifact/${{ env.ASSET_NAME }}/voicevox_core.xcframework"

build_util/ios_xcframework.bash
- name: Archive artifact
run: |
cd artifact/${{ env.ASSET_NAME }}
Expand Down

0 comments on commit 0c62e3d

Please sign in to comment.