@@ -103,11 +103,59 @@ jobs:
103103 working-directory : build
104104 - name : Display version information
105105 run : ./build/ccextractor --version
106+ build_shell_hardsubx :
107+ # Test build.command with -hardsubx flag (burned-in subtitle extraction)
108+ runs-on : macos-latest
109+ steps :
110+ - name : Install dependencies
111+ run : brew install pkg-config autoconf automake libtool tesseract leptonica gpac ffmpeg
112+ - uses : actions/checkout@v6
113+ - name : build with hardsubx
114+ run : ./build.command -hardsubx
115+ working-directory : ./mac
116+ - name : Display version information
117+ run : ./ccextractor --version
118+ working-directory : ./mac
119+ - name : Verify hardsubx support
120+ run : |
121+ # Check that -hardsubx is recognized (will fail if not compiled in)
122+ ./ccextractor -hardsubx --help 2>&1 | head -20 || true
123+ working-directory : ./mac
124+ build_autoconf_hardsubx :
125+ # Test autoconf build with HARDSUBX enabled (fixes issue #1173)
126+ runs-on : macos-latest
127+ steps :
128+ - uses : actions/checkout@v6
129+ - name : Install dependencies
130+ run : brew install pkg-config autoconf automake libtool tesseract leptonica gpac ffmpeg
131+ - name : run autogen
132+ run : ./autogen.sh
133+ working-directory : ./mac
134+ - name : configure with hardsubx
135+ run : |
136+ # Set Homebrew paths for configure to find libraries
137+ export HOMEBREW_PREFIX="$(brew --prefix)"
138+ export LDFLAGS="-L${HOMEBREW_PREFIX}/lib"
139+ export CPPFLAGS="-I${HOMEBREW_PREFIX}/include"
140+ export PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/lib/pkgconfig"
141+ ./configure --enable-hardsubx --enable-ocr
142+ working-directory : ./mac
143+ - name : make
144+ run : make
145+ working-directory : ./mac
146+ - name : Display version information
147+ run : ./ccextractor --version
148+ working-directory : ./mac
149+ - name : Verify hardsubx support
150+ run : |
151+ # Check that -hardsubx is recognized
152+ ./ccextractor -hardsubx --help 2>&1 | head -20 || true
153+ working-directory : ./mac
106154 build_rust :
107155 runs-on : macos-latest
108156 steps :
109157 - uses : actions/checkout@v6
110- - name : cache
158+ - name : cache
111159 uses : actions/cache@v5
112160 with :
113161 path : |
@@ -121,5 +169,5 @@ jobs:
121169 toolchain : stable
122170 override : true
123171 - name : build
124- run : cargo build
172+ run : cargo build
125173 working-directory : ./src/rust
0 commit comments