8
8
LibVLC_iOS_NuGet :
9
9
if : github.event_name == 'push' || github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id
10
10
runs-on : macos-latest
11
+ env :
12
+ VLCKIT_TAG : 3.6.1b1
13
+ IOS_NUGET : 3.6.1
11
14
steps :
12
15
- name : Checkout
13
16
uses : actions/checkout@v2
14
17
- name : LibVLC iOS build
15
18
shell : bash
16
19
run : |
20
+ TAG="3.6.1b1"
17
21
git clone https://github.com/videolan/vlckit
18
- cd vlckit && git checkout 3.0
22
+ cd vlckit
23
+ git checkout "tags/$VLCKIT_TAG"
19
24
./buildMobileVLCKit.sh -f
20
25
21
26
patchBinary () {
@@ -29,21 +34,26 @@ jobs:
29
34
cd ..
30
35
}
31
36
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"
33
43
patchBinary
34
- cd ios-arm64_i386_x86_64-simulator /MobileVLCKit.framework
44
+ cd "$CPU_SIM_DIR /MobileVLCKit.framework"
35
45
patchBinary
36
46
mkdir -p $GITHUB_WORKSPACE/build/ios-device
37
47
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"
40
50
- name : Setup NuGet
41
51
uses : nuget/setup-nuget@v1
42
52
with :
43
53
nuget-version : ' 5.x'
44
54
- name : Create LibVLC iOS NuGet package
45
55
run : |
46
- nuget pack VideoLAN.LibVLC.iOS.nuspec
56
+ nuget pack VideoLAN.LibVLC.iOS.nuspec -Version "${IOS_NUGET}"
47
57
- name : Upload build
48
58
uses : actions/upload-artifact@v4
49
59
with :
0 commit comments