Create all library Release #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| # push: | |
| # branches: [master] | |
| workflow_dispatch: | |
| inputs: | |
| os: | |
| description: 'macos version' | |
| required: false | |
| type: choice | |
| default: 'macos-14' | |
| options: | |
| - macos-13 | |
| - macos-14 | |
| - macos-15 | |
| platform: | |
| description: 'choose a platform for compile' | |
| required: false | |
| type: choice | |
| default: 'all' | |
| options: | |
| - apple | |
| - android | |
| - all | |
| - ios | |
| - tvos | |
| - macos | |
| dryrun: | |
| description: 'just run workflow,but not deploy' | |
| required: false | |
| type: choice | |
| default: 'false' | |
| options: | |
| - true | |
| - false | |
| pull_request: | |
| branches: [master] | |
| name: Create all library Release | |
| jobs: | |
| build: | |
| name: compile all libs for ${{ inputs.platform }} then deploy | |
| runs-on: ${{ inputs.os }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| steps: | |
| - uses: nttld/setup-ndk@v1 | |
| id: setup-ndk | |
| with: | |
| ndk-version: r27c | |
| add-to-path: true | |
| local-cache: false | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: One Step | |
| run: | | |
| echo '------compile unibreak------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh unibreak ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile fribidi------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh fribidi ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile freetype------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh freetype ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| if [[ ${{ inputs.platform }} == android ]]; then | |
| echo '------compile android fontconfig------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/install-dependencies.sh fontconfig android | |
| .github/workflows/onestep.sh fontconfig android | |
| fi | |
| echo '------compile harfbuzz------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/install-dependencies.sh harfbuzz ${{ inputs.platform }} | |
| .github/workflows/onestep.sh harfbuzz ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile ass------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/install-dependencies.sh ass ${{ inputs.platform }} | |
| .github/workflows/onestep.sh ass ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile yuv------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh yuv ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile soundtouch------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh soundtouch ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile opus------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh opus ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile openssl------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh openssl ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile dvdread------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh dvdread ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile bluray------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/install-dependencies.sh bluray ${{ inputs.platform }} | |
| .github/workflows/onestep.sh bluray ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile dav1d------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh dav1d ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile uavs3d------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh uavs3d ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile smb2------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/onestep.sh smb2 ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| echo '------compile ffmpeg------------------------------------' | |
| rm -rf build || git reset --hard || git pull origin | |
| .github/workflows/install-dependencies.sh ffmpeg ${{ inputs.platform }} | |
| .github/workflows/onestep.sh ffmpeg ${{ inputs.platform }} ${{ inputs.dryrun }} | |
| env: | |
| ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} |