@@ -14,11 +14,13 @@ jobs:
1414 runner : ubuntu-22.04
1515 ffmpeg_url : https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-11-30-13-12/ffmpeg-n5.1.6-11-gcde3c5fc0c-linux64-gpl-shared-5.1.tar.xz
1616 ffmpeg_dir : ffmpeg-n5.1.6-11-gcde3c5fc0c-linux64-gpl-shared-5.1
17+ bmf_url : https://github.com/OpenConverterLab/bmf/releases/download/oc0.0.3/bmf-bin-linux-x86_64-cp39.tar.gz
1718 appimagetool : appimagetool-x86_64.AppImage
1819 - arch : aarch64
1920 runner : ubuntu-22.04-arm
2021 ffmpeg_url : https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2024-11-30-13-12/ffmpeg-n5.1.6-11-gcde3c5fc0c-linuxarm64-gpl-shared-5.1.tar.xz
2122 ffmpeg_dir : ffmpeg-n5.1.6-11-gcde3c5fc0c-linuxarm64-gpl-shared-5.1
23+ bmf_url : https://github.com/OpenConverterLab/bmf/releases/download/oc0.0.3/bmf-bin-linux-aarch64-cp39.tar.gz
2224 appimagetool : appimagetool-aarch64.AppImage
2325 runs-on : ${{ matrix.runner }}
2426 concurrency :
@@ -35,30 +37,10 @@ jobs:
3537 echo "Current commit hash: $(git rev-parse HEAD)"
3638 echo "Architecture: ${{ matrix.arch }}"
3739
38- - name : Checkout BMF repository (specific branch)
40+ - name : Install dependencies
3941 run : |
4042 sudo apt update
41- sudo apt install -y make git pkg-config libssl-dev cmake binutils-dev libgoogle-glog-dev libunwind-dev gcc g++ golang wget libgl1
42- sudo apt install -y libsndfile1 libsndfile1-dev
43-
44- git clone https://github.com/JackLau1222/bmf.git
45-
46- - name : Build and install Python 3.9
47- run : |
48- cd /opt
49- wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
50- tar xvf Python-3.9.13.tgz
51- cd Python-3.9.13
52- sudo ./configure --enable-optimizations --enable-shared
53- sudo make altinstall
54-
55- # - name: Cache BMF build
56- # uses: actions/cache@v3
57- # with:
58- # path: bmf/output/
59- # key: ${{ runner.os }}-bmf-${{ matrix.arch }}-${{ hashFiles('bmf/build.sh') }}
60- # restore-keys: |
61- # ${{ runner.os }}-bmf-linux-${{ matrix.arch }}
43+ sudo apt install -y make git pkg-config cmake gcc g++ wget libgl1
6244
6345 - name : Get FFmpeg
6446 run : |
@@ -67,15 +49,11 @@ jobs:
6749 ls ${{ matrix.ffmpeg_dir }}
6850 echo "FFMPEG_ROOT_PATH=$(pwd)/${{ matrix.ffmpeg_dir }}" >> $GITHUB_ENV
6951
70- - name : Set up BMF if not cached
52+ - name : Get BMF
7153 run : |
72- if [ ! -d "$(pwd)/bmf/output/" ]; then
73- export BMF_PYTHON_VERSION="3.9"
74- (cd bmf && git checkout oc && ./build.sh)
75- else
76- echo "BMF is already installed, skipping build."
77- fi
78- echo "BMF_ROOT_PATH=$(pwd)/bmf/output/bmf" >> $GITHUB_ENV
54+ wget ${{ matrix.bmf_url }}
55+ tar xzvf bmf-bin-linux-${{ matrix.arch }}-cp39.tar.gz
56+ echo "BMF_ROOT_PATH=$(pwd)/output/bmf" >> $GITHUB_ENV
7957
8058 - name : Set up Qt
8159 run : |
0 commit comments