Build Linux Deps #2
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
| name: Build Linux Deps | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: 'Deps version (e.g., 1.3.0)' | |
| required: true | |
| type: string | |
| release_tag: | |
| description: 'Upload to this release tag (e.g., deps-v1.3.0). Leave empty to skip upload.' | |
| required: false | |
| type: string | |
| jobs: | |
| build-deps: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| ninja-build cmake nasm patchelf autoconf automake libtool \ | |
| cython3 pkg-config gcc g++ python3-pip \ | |
| libfftw3-dev libboost-filesystem-dev libboost-atomic-dev \ | |
| ocl-icd-opencl-dev opencl-headers libdvdread-dev \ | |
| unzip | |
| # Ubuntu 22.04 ships meson 0.61 but VapourSynth needs >= 0.63 | |
| pip3 install meson | |
| - name: Build dependencies | |
| run: | | |
| ./Scripts/download-deps-linux.sh --force | |
| - name: Package dependencies | |
| run: | | |
| ./Scripts/package-deps-linux.sh --version "${{ inputs.version }}" --arch x64 | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: VapourBox-deps-${{ inputs.version }}-linux-x64 | |
| path: dist/VapourBox-deps-${{ inputs.version }}-linux-x64.zip | |
| - name: Upload to release | |
| if: ${{ inputs.release_tag != '' }} | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release upload "${{ inputs.release_tag }}" \ | |
| "dist/VapourBox-deps-${{ inputs.version }}-linux-x64.zip" \ | |
| --clobber |