forked from HandBrake/HandBrake
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.5 KB
/
linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Linux Build
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build on Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cargo-C Toolchain Cache
id: linux-cargo-c-toolchain
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/cargo-capi
~/.cargo/bin/cargo-cbuild
~/.cargo/bin/cargo-cinstall
key: linux-cargo-c-toolchain
- name: Setup Environment
run: |
sudo apt-get update
sudo apt-get install autoconf automake build-essential libass-dev libbz2-dev libfontconfig1-dev libfreetype6-dev libfribidi-dev libharfbuzz-dev libjansson-dev liblzma-dev libmp3lame-dev libnuma-dev libturbojpeg0-dev libssl-dev
sudo apt-get install libogg-dev libopus-dev libsamplerate-dev libspeex-dev libtheora-dev libtool libtool-bin libvorbis-dev libx264-dev libxml2-dev libvpx-dev make nasm ninja-build patch tar zlib1g-dev appstream
sudo pip3 install meson
sudo apt-get install gettext libglib2.0-dev libgtk-4-dev
sudo apt-get install libva-dev libdrm-dev llvm clang
- name: Setup Cargo-C Toolchain
if: steps.linux-cargo-c-toolchain.outputs.cache-hit != 'true'
run: |
cargo install cargo-c
- name: Build HandBrake Linux
run: |
./configure --enable-qsv --enable-vce --enable-nvenc --enable-nvdec --launch-jobs=0 --launch