From b92384ae69919930e46977bd332a4c6978ac32a2 Mon Sep 17 00:00:00 2001 From: wwwcg Date: Tue, 25 Apr 2023 11:40:27 +0800 Subject: [PATCH] build(ios): fix artifact build --- .github/CODEOWNERS | 4 ++-- .github/workflows/project_artifact_compare.yml | 6 +++--- _Pods.xcodeproj | 1 + 3 files changed, 6 insertions(+), 5 deletions(-) create mode 120000 _Pods.xcodeproj diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index fa579544c4e..fcbe6025228 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -60,8 +60,8 @@ CMakeLists.txt @churchill-zhang @ilikethese /gradle/ @siguangli # build: xcode -/hippy.podspec @ozonelmy -/Hippy.xcworkspace/ @ozonelmy +/hippy.podspec @ozonelmy @wwwcg +/_Pods.xcodeproj/ @wwwcg @ozonelmy # build: config /buildconfig/ @churchill-zhang @ilikethese diff --git a/.github/workflows/project_artifact_compare.yml b/.github/workflows/project_artifact_compare.yml index e8ce0a1d171..77807fb1e5f 100644 --- a/.github/workflows/project_artifact_compare.yml +++ b/.github/workflows/project_artifact_compare.yml @@ -90,8 +90,8 @@ jobs: run: | xcodebuild build \ -destination 'generic/platform=iOS' \ - -workspace 'Hippy.xcworkspace' \ - -scheme 'HippyLibrary' \ + -project '_Pods.xcodeproj' \ + -scheme 'hippy' \ -configuration 'Release' \ CODE_SIGN_IDENTITY="" \ CODE_SIGNING_REQUIRED=NO \ @@ -100,7 +100,7 @@ jobs: id: get_size run: | if [[ "${{ matrix.ref }}" ]]; then - echo "${{ matrix.source }}=$(ls -l $(xcodebuild -scheme 'HippyLibrary' -showBuildSettings | grep -m 1 TARGET_BUILD_DIR | grep -oEi "\/.*")/libhippy.a | awk '{print $5}')" >> $GITHUB_OUTPUT + echo "${{ matrix.source }}=$(ls -l $(xcodebuild -scheme 'hippy' -showBuildSettings | grep -m 1 TARGET_BUILD_DIR | grep -oEi "\/.*")/libhippy.a | awk '{print $5}')" >> $GITHUB_OUTPUT else echo "${{ matrix.source }}=-1" >> $GITHUB_OUTPUT fi diff --git a/_Pods.xcodeproj b/_Pods.xcodeproj new file mode 120000 index 00000000000..c4e4beeb180 --- /dev/null +++ b/_Pods.xcodeproj @@ -0,0 +1 @@ +examples/ios-demo/Pods/Pods.xcodeproj \ No newline at end of file