Skip to content

Commit 2d317b6

Browse files
authored
ios: fix CI
release 3.6.1
1 parent 4f75d38 commit 2d317b6

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,19 @@ jobs:
88
LibVLC_iOS_NuGet:
99
if: github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
1010
runs-on: macos-latest
11+
env:
12+
VLCKIT_TAG: 3.6.1b1
13+
IOS_NUGET: 3.6.1
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v2
1417
- name: LibVLC iOS build
1518
shell: bash
1619
run: |
20+
TAG="3.6.1b1"
1721
git clone https://github.com/videolan/vlckit
18-
cd vlckit && git checkout 3.0
22+
cd vlckit
23+
git checkout "tags/$VLCKIT_TAG"
1924
./buildMobileVLCKit.sh -f
2025
2126
patchBinary () {
@@ -29,21 +34,26 @@ jobs:
2934
cd ..
3035
}
3136
32-
cd build/MobileVLCKit.xcframework/ios-arm64_armv7_armv7s/MobileVLCKit.framework
37+
CPU_DEVICE_DIR="ios-arm64"
38+
CPU_SIM_DIR="ios-arm64_x86_64-simulator"
39+
40+
cd build/MobileVLCKit.xcframework
41+
42+
cd "$CPU_DEVICE_DIR/MobileVLCKit.framework"
3343
patchBinary
34-
cd ios-arm64_i386_x86_64-simulator/MobileVLCKit.framework
44+
cd "$CPU_SIM_DIR/MobileVLCKit.framework"
3545
patchBinary
3646
mkdir -p $GITHUB_WORKSPACE/build/ios-device
3747
mkdir -p $GITHUB_WORKSPACE/build/ios-simulator
38-
mv ios-arm64_armv7_armv7s/DynamicMobileVLCKit.framework $GITHUB_WORKSPACE/build/ios-device
39-
mv ios-arm64_i386_x86_64-simulator/DynamicMobileVLCKit.framework $GITHUB_WORKSPACE/build/ios-simulator
48+
mv "$CPU_DEVICE_DIR/DynamicMobileVLCKit.framework" "$GITHUB_WORKSPACE/build/ios-device"
49+
mv "$CPU_SIM_DIR/DynamicMobileVLCKit.framework" "$GITHUB_WORKSPACE/build/ios-simulator"
4050
- name: Setup NuGet
4151
uses: nuget/setup-nuget@v1
4252
with:
4353
nuget-version: '5.x'
4454
- name: Create LibVLC iOS NuGet package
4555
run: |
46-
nuget pack VideoLAN.LibVLC.iOS.nuspec
56+
nuget pack VideoLAN.LibVLC.iOS.nuspec -Version "${IOS_NUGET}"
4757
- name: Upload build
4858
uses: actions/upload-artifact@v4
4959
with:

0 commit comments

Comments
 (0)