Skip to content

Commit 539b8f1

Browse files
committed
try choice type
1 parent 5e1a3b6 commit 539b8f1

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

.github/workflows/apple-android-common.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
os:
99
description: 'macos version'
1010
required: false
11+
type: choice
1112
default: 'macos-latest-large'
1213
options:
1314
- macos-13
@@ -16,16 +17,19 @@ on:
1617
platform:
1718
description: 'choose a platform for compile'
1819
required: false
20+
type: choice
1921
default: 'all'
2022
options:
23+
- apple
24+
- android
25+
- all
2126
- ios
2227
- tvos
2328
- macos
24-
- android
25-
- all
2629
lib:
2730
description: 'choose a lib for compile'
2831
required: true
32+
type: choice
2933
default: 'ffmpeg'
3034
options:
3135
- ass

.github/workflows/install-denpendencies.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ case LIB_NAME in
1212
./main.sh install -l 'harfbuzz fribidi unibreak' -p tvos
1313
./main.sh install -l 'harfbuzz fribidi unibreak' -p macos
1414
./main.sh install -l 'harfbuzz fribidi unibreak fontconfig' -p android
15+
elif [[ $PLAT == apple ]];then
16+
./main.sh install -l 'harfbuzz fribidi unibreak' -p ios
17+
./main.sh install -l 'harfbuzz fribidi unibreak' -p tvos
18+
./main.sh install -l 'harfbuzz fribidi unibreak' -p macos
1519
else
1620
./main.sh install -l 'harfbuzz fribidi unibreak' -p $PLAT
1721
fi
@@ -27,10 +31,14 @@ case LIB_NAME in
2731
;;
2832
ffmpeg)
2933
if [[ $PLAT == all ]];then
30-
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p ios
3134
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p tvos
35+
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p ios
3236
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p macos
3337
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p android
38+
elif [[ $PLAT == apple ]];then
39+
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p tvos
40+
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p ios
41+
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p macos
3442
else
3543
./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p $PLAT
3644
fi
@@ -41,6 +49,10 @@ case LIB_NAME in
4149
./main.sh install -l 'freetype' -p tvos
4250
./main.sh install -l 'freetype' -p macos
4351
./main.sh install -l 'freetype' -p android
52+
elif [[ $PLAT == apple ]];then
53+
./main.sh install -l 'freetype' -p ios
54+
./main.sh install -l 'freetype' -p tvos
55+
./main.sh install -l 'freetype' -p macos
4456
else
4557
./main.sh install -l 'freetype' -p $PLAT
4658
fi

.github/workflows/onestep.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,16 @@ function main()
119119
make_xcfmwk_bundle
120120
publish
121121
;;
122+
apple)
123+
init_platform ios
124+
compile_ios_platform
125+
init_platform macos
126+
compile_macos_platform
127+
init_platform tvos
128+
compile_tvos_platform
129+
make_xcfmwk_bundle
130+
publish
131+
;;
122132
android)
123133
init_platform $PLAT
124134
compile_android_platform

0 commit comments

Comments
 (0)