File tree Expand file tree Collapse file tree 4 files changed +18
-26
lines changed Expand file tree Collapse file tree 4 files changed +18
-26
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,21 @@ install_pipewire() {(
7878 fi
7979)}
8080
81+ install_rav1e () {(
82+ # TODO: use avx2 later
83+ if expr " ${UG_ARCH-} " : ' .*avx' > /dev/null; then
84+ avx2=avx2
85+ fi
86+ fpattern=" librav1e.*linux-${avx2-sse4} .tar.gz"
87+ " ${GITHUB_WORKSPACE-.} " /.github/scripts/download-gh-asset.sh xiph/rav1e \
88+ " $fpattern " librav1e.tar.gz
89+ sudo tar xaf librav1e.tar.gz -C /usr/local
90+ sudo rm -rf /usr/local/lib/librav1e.so*
91+ sudo sed -i -e ' s-prefix=dist-prefix=/usr/local-' \
92+ -e ' s/-lrav1e/-lrav1e -lm -pthread/' \
93+ /usr/local/lib/pkgconfig/rav1e.pc
94+ )}
95+
8196# FFmpeg master needs at least v1.3.238 as for 23th Aug '23
8297install_vulkan () {(
8398 # TOREMOVE: FFmpeg doesn't currently build with main (2024-02-09)
@@ -101,7 +116,7 @@ if [ $# -eq 1 ] && { [ "$1" = -h ] || [ "$1" = --help ] || [ "$1" = help ]; }; t
101116fi
102117
103118if [ $# -eq 0 ] || [ $show_help ]; then
104- set -- aja gpujpeg live555 ndi pipewire vulkan ximea
119+ set -- aja gpujpeg live555 ndi pipewire rav1e vulkan ximea
105120fi
106121
107122if [ $show_help ]; then
Original file line number Diff line number Diff line change 11#! /bin/bash -eux
22
3+ export PKG_CONFIG_PATH=/usr/local/qt/lib/pkgconfig:/usr/local/lib/pkgconfig
34printf " %b" " AJA_DIRECTORY=/var/tmp/ntv2\n\
45CPATH=/usr/local/qt/include\n\
56LIBRARY_PATH=/usr/local/qt/lib\n\
6- PKG_CONFIG_PATH=/usr/local/qt/lib/pkgconfig \n" >> " $GITHUB_ENV "
7+ PKG_CONFIG_PATH=$PKG_CONFIG_PATH \n" >> " $GITHUB_ENV "
78printf " /usr/local/qt/bin\n" >> " $GITHUB_PATH "
89
910git config --global user.name " UltraGrid Builder"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7676 run : |
7777 . .github/scripts/environment.sh
7878 .github/scripts/Linux/prepare.sh
79- - name : Cache rav1e
80- id : cache-rav1e
81- uses : actions/cache@main
82- with :
83- path : rav1e
84- key : cache-rav1e-${{ runner.os }}-${{ hashFiles('.github/scripts/Linux/rav1e.sh') }}
85- - name : Build rav1e
86- if : steps.cache-rav1e.outputs.cache-hit != 'true'
87- run : .github/scripts/Linux/rav1e.sh
88- - name : Install rav1e
89- run : |
90- sudo cp -r rav1e/install/* /
91- sudo ldconfig
9279 - name : Cache FFmpeg
9380 id : cache-ffmpeg
9481 uses : actions/cache@main
You can’t perform that action at this time.
0 commit comments