Skip to content

Commit e720003

Browse files
committed
Pass framework name
1 parent cce6a92 commit e720003

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,14 @@ jobs:
7070
- uses: maxim-lobanov/setup-xcode@v1
7171
with:
7272
xcode-version: 16.4
73-
- run: brew install ninja
74-
- run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}"
73+
- name: Build
74+
id: build
75+
run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}"
7576
- name: Upload Artifact
7677
uses: actions/upload-artifact@v4
7778
with:
78-
name: ${{ matrix.name == 'apple_prefixed' && 'LiveKitWebRTC.xcframework.zip' || 'WebRTC.xcframework.zip' }}
79-
path: build/_package/${{ matrix.name }}/*.xcframework.zip
79+
name: ${{ steps.build.outputs.framework_name }}.xcframework.zip
80+
path: build/_package/${{ matrix.name }}/${{ steps.build.outputs.framework_name }}.xcframework.zip
8081
build-linux:
8182
defaults:
8283
run:

build/apple/xcframework.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ zip --symlinks -9 -r $FRAMEWORK_NAME.xcframework.zip $FRAMEWORK_NAME.xcframework
147147

148148
end_group
149149

150-
start_group "Checksum"
151-
152-
shasum -a 256 $FRAMEWORK_NAME.xcframework.zip >$FRAMEWORK_NAME.xcframework.zip.shasum
153-
cat $FRAMEWORK_NAME.xcframework.zip.shasum
154-
155-
end_group
150+
if [ "$CI" = "true" ]; then
151+
echo "framework_name=$FRAMEWORK_NAME" >> $GITHUB_OUTPUT
152+
fi

build/build.apple.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ cd `dirname $0`
66
python3 run.py build apple --commit "$1" --webrtc-fetch
77

88
export PATH="$PWD/_source/apple/depot_tools:$PATH"
9-
. apple/xcframework.sh.sh release _source/apple/webrtc/src _package/apple
9+
. apple/xcframework.sh release _source/apple/webrtc/src _package/apple

0 commit comments

Comments
 (0)