File tree Expand file tree Collapse file tree 2 files changed +43
-14
lines changed Expand file tree Collapse file tree 2 files changed +43
-14
lines changed Original file line number Diff line number Diff line change 7878 $FFMPEG_ROOT_PATH/bin/ffmpeg -version | head -n 1
7979 $FFMPEG_ROOT_PATH/bin/ffmpeg -encoders 2>/dev/null | grep -E "libx264|libx265" || echo "Warning: x264/x265 not found"
8080
81+ - name : Checkout BMF repository(specific branch)
82+ run : |
83+ git clone https://github.com/OpenConverterLab/bmf.git
84+ cd bmf
85+ git checkout oc
86+
87+ wget https://invisible-island.net/archives/ncurses/ncurses-6.5.tar.gz
88+ wget https://ftp.gnu.org/gnu/binutils/binutils-2.43.1.tar.bz2
89+
90+ - name : Cache BMF build
91+ uses : actions/cache@v3
92+ with :
93+ path : bmf/output/
94+ key : ${{ runner.os }}-bmf-${{ hashFiles('bmf/build_osx.sh') }}
95+ restore-keys : |
96+ ${{ runner.os }}-bmf-macos-arm-
97+
98+ - name : Set up BMF if not cached
99+ run : |
100+ if [ ! -d "$(pwd)/bmf/output/" ]; then
101+ export LIBRARY_PATH=$(pwd)/opt/binutils/lib:$LIBRARY_PATH
102+ export CMAKE_PREFIX_PATH=$(pwd)/opt/binutils:$CMAKE_PREFIX_PATH
103+ pip install setuptools
104+ (cd bmf && git checkout oc && git submodule update --init --recursive && ./build_osx.sh)
105+ else
106+ echo "BMF is already installed, skipping build."
107+ fi
108+ echo "BMF_ROOT_PATH=$(pwd)/bmf/output/bmf" >> $GITHUB_ENV
109+
81110 - name : Build with CMake
82111 run : |
83112 export PATH=$PATH:$FFMPEG_ROOT_PATH/bin
Original file line number Diff line number Diff line change @@ -171,21 +171,21 @@ jobs:
171171 restore-keys : |
172172 ${{ runner.os }}-binutils-
173173
174- - name : compile dependencies
175- run : |
176- if [ ! -d "$(pwd)/opt/ncurses" ]; then
177- tar -xzvf ncurses-6.5.tar.gz
178- (cd ncurses-6.5 && ./configure --prefix=/Users/runner/work/OpenConverter/OpenConverter/opt/ncurses && make -j$(sysctl -n hw.ncpu) && sudo make install)
179- else
180- echo "ncurses is already installed, skipping build."
181- fi
174+ # - name: compile dependencies
175+ # run: |
176+ # if [ ! -d "$(pwd)/opt/ncurses" ]; then
177+ # tar -xzvf ncurses-6.5.tar.gz
178+ # (cd ncurses-6.5 && ./configure --prefix=/Users/runner/work/OpenConverter/OpenConverter/opt/ncurses && make -j$(sysctl -n hw.ncpu) && sudo make install)
179+ # else
180+ # echo "ncurses is already installed, skipping build."
181+ # fi
182182
183- if [ ! -d "$(pwd)/opt/binutils" ]; then
184- tar xvf binutils-2.43.1.tar.bz2
185- (cd binutils-2.43.1 && ./configure --prefix=/Users/runner/work/OpenConverter/OpenConverter/opt/binutils --enable-install-libiberty && make -j$(sysctl -n hw.ncpu) && sudo make install)
186- else
187- echo "binutils is already installed, skipping build."
188- fi
183+ # if [ ! -d "$(pwd)/opt/binutils" ]; then
184+ # tar xvf binutils-2.43.1.tar.bz2
185+ # (cd binutils-2.43.1 && ./configure --prefix=/Users/runner/work/OpenConverter/OpenConverter/opt/binutils --enable-install-libiberty && make -j$(sysctl -n hw.ncpu) && sudo make install)
186+ # else
187+ # echo "binutils is already installed, skipping build."
188+ # fi
189189
190190 - name : Cache BMF build
191191 uses : actions/cache@v3
You can’t perform that action at this time.
0 commit comments