Skip to content

Commit c0395e3

Browse files
committed
workflows/test: fix compilation link the wrong openssl
Signed-off-by: Jack Lau <[email protected]>
1 parent 88c495d commit c0395e3

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ jobs:
386386
387387
# Build FFmpeg with WebRTC support
388388
PKG_CONFIG_PATH="$HOME/.release/openssl/lib/pkgconfig" \
389-
./configure --enable-muxer=whip --enable-openssl --enable-version3
389+
./configure --enable-muxer=whip --enable-openssl \
390+
--extra-cflags="-I$HOME/.release/openssl/include" \
391+
--extra-ldflags="-L$HOME/.release/openssl/lib" \
392+
--pkg-config-flags="--static"
390393
make -j$(nproc)
391394
./ffmpeg -version && ./ffmpeg -muxers 2>/dev/null |grep whip
392395
- name: Start SRS Docker container
@@ -467,7 +470,10 @@ jobs:
467470
468471
# Build FFmpeg with WebRTC support
469472
PKG_CONFIG_PATH="$HOME/.release/openssl/lib/pkgconfig" \
470-
./configure --enable-muxer=whip --enable-openssl --enable-version3
473+
./configure --enable-muxer=whip --enable-openssl \
474+
--extra-cflags="-I$HOME/.release/openssl/include" \
475+
--extra-ldflags="-L$HOME/.release/openssl/lib" \
476+
--pkg-config-flags="--static"
471477
make -j$(nproc)
472478
./ffmpeg -version && ./ffmpeg -muxers 2>/dev/null |grep whip
473479
- name: Start SRS Docker container
@@ -548,7 +554,10 @@ jobs:
548554
549555
# Build FFmpeg with WebRTC support
550556
PKG_CONFIG_PATH="$HOME/.release/openssl/lib/pkgconfig" \
551-
./configure --enable-muxer=whip --enable-openssl --enable-version3
557+
./configure --enable-muxer=whip --enable-openssl \
558+
--extra-cflags="-I$HOME/.release/openssl/include" \
559+
--extra-ldflags="-L$HOME/.release/openssl/lib" \
560+
--pkg-config-flags="--static"
552561
make -j$(nproc)
553562
./ffmpeg -version && ./ffmpeg -muxers 2>/dev/null |grep whip
554563
- name: Start SRS Docker container
@@ -626,6 +635,9 @@ jobs:
626635
# Build FFmpeg with WebRTC support
627636
PKG_CONFIG_PATH="$HOME/.release/openssl/lib/pkgconfig" \
628637
./configure --enable-muxer=whip --enable-openssl --enable-version3 \
638+
--extra-cflags="-I$HOME/.release/openssl/include" \
639+
--extra-ldflags="-L$HOME/.release/openssl/lib" \
640+
--pkg-config-flags="--static" \
629641
--enable-libx264 --enable-gpl --enable-libopus
630642
make -j$(nproc)
631643
./ffmpeg -version && ./ffmpeg -muxers 2>/dev/null |grep whip
@@ -705,6 +717,9 @@ jobs:
705717
# Build FFmpeg with WebRTC support
706718
PKG_CONFIG_PATH="$HOME/.release/openssl/lib/pkgconfig" \
707719
./configure --enable-muxer=whip --enable-openssl --enable-version3 \
720+
--extra-cflags="-I$HOME/.release/openssl/include" \
721+
--extra-ldflags="-L$HOME/.release/openssl/lib" \
722+
--pkg-config-flags="--static" \
708723
--enable-libx264 --enable-gpl --enable-libopus
709724
make -j$(nproc)
710725
./ffmpeg -version && ./ffmpeg -muxers 2>/dev/null |grep whip

0 commit comments

Comments
 (0)