Skip to content

Commit d55c167

Browse files
committed
Update GitHub Actions workflow for macOS builds
- Remove unnecessary tesseract-lang package from dependencies - Add cmake_ocr_hardsubx job to test OCR and hardsubx builds - Include ffmpeg in dependencies for hardsubx support
1 parent 7b9f6e5 commit d55c167

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build_mac.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@ jobs:
7474
working-directory: build
7575
- name: Display version information
7676
run: ./build/ccextractor --version
77+
cmake_ocr_hardsubx:
78+
runs-on: macos-latest
79+
steps:
80+
- uses: actions/checkout@v4
81+
- name: Install dependencies
82+
run: brew install pkg-config autoconf automake libtool tesseract leptonica gpac ffmpeg
83+
- name: cmake
84+
run: |
85+
mkdir build && cd build
86+
cmake -DWITH_OCR=ON -DWITH_HARDSUBX=ON ../src
87+
- name: build
88+
run: |
89+
make -j$(nproc)
90+
working-directory: build
91+
- name: Display version information
92+
run: ./build/ccextractor --version
7793
build_rust:
7894
runs-on: macos-latest
7995
steps:

0 commit comments

Comments
 (0)