22 # push:
33 # branches: [master]
44 workflow_dispatch :
5+ inputs :
6+ os :
7+ description : ' macos version'
8+ required : false
9+ type : choice
10+ default : ' macos-latest-large'
11+ options :
12+ - macos-latest-large
13+ - macos-13
14+ - macos-14
15+ - macos-15
16+ platform :
17+ description : ' choose a platform for compile'
18+ required : false
19+ type : choice
20+ default : ' all'
21+ options :
22+ - apple
23+ - android
24+ - all
25+ - ios
26+ - tvos
27+ - macos
528 pull_request :
629 branches : [master]
730
831name : Create all library Release
932
1033jobs :
1134 build :
12- name : compile all lib then deploy
13- runs-on : macos-14
35+ name : compile all libs for ${{ inputs.platform }} then deploy
36+ runs-on : ${{ inputs.os }}
1437 env :
1538 GH_TOKEN : ${{ github.token }}
1639 steps :
@@ -19,58 +42,57 @@ jobs:
1942 - name : One Step
2043 run : |
2144 echo '------compile yuv------------------------------------'
22- .github/workflows/onestep.sh yuv all
45+ .github/workflows/onestep.sh yuv ${{ inputs.platform }}
2346 echo '------compile soundtouch------------------------------------'
2447 rm -rf build || git reset --hard || git pull origin
25- .github/workflows/onestep.sh soundtouch all
48+ .github/workflows/onestep.sh soundtouch ${{ inputs.platform }}
2649 echo '------compile unibreak------------------------------------'
2750 rm -rf build || git reset --hard || git pull origin
28- .github/workflows/onestep.sh unibreak all
51+ .github/workflows/onestep.sh unibreak ${{ inputs.platform }}
2952 echo '------compile fribidi------------------------------------'
3053 rm -rf build || git reset --hard || git pull origin
31- .github/workflows/onestep.sh fribidi all
54+ .github/workflows/onestep.sh fribidi ${{ inputs.platform }}
3255 echo '------compile freetype------------------------------------'
3356 rm -rf build || git reset --hard || git pull origin
34- .github/workflows/onestep.sh freetype all
57+ .github/workflows/onestep.sh freetype ${{ inputs.platform }}
58+ if [[ ${{ inputs.platform }} == anroid ]]; then
59+ echo '------compile android fontconfig------------------------------------'
60+ rm -rf build || git reset --hard || git pull origin
61+ .github/workflows/onestep.sh fontconfig android
62+ fi
3563 echo '------compile harfbuzz------------------------------------'
3664 rm -rf build || git reset --hard || git pull origin
37- ./main.sh install -l 'freetype' -p ios
38- ./main.sh install -l 'freetype' -p tvos
39- ./main.sh install -l 'freetype' -p macos
40- ./main.sh install -l 'freetype' -p android
41- .github/workflows/onestep.sh harfbuzz all
65+ .github/workflows/install-denpendencies.sh harfbuzz ${{ inputs.platform }}
66+ .github/workflows/onestep.sh harfbuzz ${{ inputs.platform }}
4267 echo '------compile ass------------------------------------'
4368 rm -rf build || git reset --hard || git pull origin
44- ./main.sh install -l 'harfbuzz fribidi unibreak' -p ios
45- ./main.sh install -l 'harfbuzz fribidi unibreak' -p tvos
46- ./main.sh install -l 'harfbuzz fribidi unibreak' -p macos
47- ./main.sh install -l 'harfbuzz fribidi unibreak fontconfig' -p android
48- .github/workflows/onestep.sh ass all
69+ .github/workflows/install-denpendencies.sh ass ${{ inputs.platform }}
70+ .github/workflows/onestep.sh ass ${{ inputs.platform }}
4971 echo '------compile opus------------------------------------'
5072 rm -rf build || git reset --hard || git pull origin
51- .github/workflows/onestep.sh opus all
73+ .github/workflows/onestep.sh opus ${{ inputs.platform }}
5274 echo '------compile openssl------------------------------------'
5375 rm -rf build || git reset --hard || git pull origin
54- .github/workflows/onestep.sh openssl all
76+ .github/workflows/onestep.sh openssl ${{ inputs.platform }}
5577 echo '------compile dvdread------------------------------------'
5678 rm -rf build || git reset --hard || git pull origin
57- .github/workflows/onestep.sh dvdread all
79+ .github/workflows/onestep.sh dvdread ${{ inputs.platform }}
5880 echo '------compile bluray------------------------------------'
5981 rm -rf build || git reset --hard || git pull origin
60- .github/workflows/onestep.sh bluray all
82+ .github/workflows/install-denpendencies.sh fontconfig ${{ inputs.platform }}
83+ .github/workflows/onestep.sh bluray ${{ inputs.platform }}
6184 echo '------compile dav1d------------------------------------'
6285 rm -rf build || git reset --hard || git pull origin
63- .github/workflows/onestep.sh dav1d all
86+ .github/workflows/onestep.sh dav1d ${{ inputs.platform }}
6487 echo '------compile uavs3d------------------------------------'
6588 rm -rf build || git reset --hard || git pull origin
66- .github/workflows/onestep.sh uavs3d all
89+ .github/workflows/onestep.sh uavs3d ${{ inputs.platform }}
6790 echo '------compile smb2------------------------------------'
6891 rm -rf build || git reset --hard || git pull origin
69- .github/workflows/onestep.sh smb2 all
92+ .github/workflows/onestep.sh smb2 ${{ inputs.platform }}
7093 echo '------compile ffmpeg------------------------------------'
7194 rm -rf build || git reset --hard || git pull origin
72- ./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p ios
73- ./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p tvos
74- ./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p macos
75- ./main.sh install -l 'openssl opus dav1d dvdread uavs3d smb2 bluray' -p android
76- .github/workflows/onestep.sh ffmpeg all
95+ .github/workflows/install-denpendencies.sh ffmpeg ${{ inputs.platform }}
96+ .github/workflows/onestep.sh ffmpeg ${{ inputs.platform }}
97+ env :
98+ ANDROID_NDK_HOME : ${{ steps.setup-ndk.outputs.ndk-path }}
0 commit comments