ci: Remove unnecessary pkgconfig patches (#86)
* ci: Remove unnecessary pkgconfig patches * ci: Install libc++ on Linux This is necessary for the FFmpeg binaries. It's currently included in 22.04, but not 24.04, so this is futureproofing.
This commit is contained in:
parent
1b5d24091a
commit
0fdfa9ab50
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -56,7 +56,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
libva2 libva-drm2 libva-x11-2 libvdpau1 libxv1
|
libc++1 libva2 libva-drm2 libva-x11-2 libvdpau1 libxv1
|
||||||
- name: Download FFmpeg
|
- name: Download FFmpeg
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -64,11 +64,6 @@ jobs:
|
|||||||
curl -L "https://sourceforge.net/projects/avbuild/files/linux/${{ matrix.ffmpeg.file }}/download" \
|
curl -L "https://sourceforge.net/projects/avbuild/files/linux/${{ matrix.ffmpeg.file }}/download" \
|
||||||
| tar xJf - --strip 1 -C ffmpeg-libs
|
| tar xJf - --strip 1 -C ffmpeg-libs
|
||||||
|
|
||||||
# https://github.com/wang-bin/avbuild/issues/76
|
|
||||||
PC_FILES=(ffmpeg-libs/lib/${{ matrix.ffmpeg.lib_subdir }}/pkgconfig/*.pc)
|
|
||||||
sed -i 's/^prefix=.*$/prefix=${pcfiledir}\/..\/..\/../g' $PC_FILES
|
|
||||||
sed -i 's/^libdir=.*$/libdir=${prefix}\/lib\/${{ matrix.ffmpeg.lib_subdir }}/g' $PC_FILES
|
|
||||||
|
|
||||||
echo "PKG_CONFIG_PATH=$PWD/ffmpeg-libs/lib/${{ matrix.ffmpeg.lib_subdir }}/pkgconfig" >> "$GITHUB_ENV"
|
echo "PKG_CONFIG_PATH=$PWD/ffmpeg-libs/lib/${{ matrix.ffmpeg.lib_subdir }}/pkgconfig" >> "$GITHUB_ENV"
|
||||||
echo "LD_LIBRARY_PATH=$PWD/ffmpeg-libs/lib/${{ matrix.ffmpeg.lib_subdir }}" >> "$GITHUB_ENV"
|
echo "LD_LIBRARY_PATH=$PWD/ffmpeg-libs/lib/${{ matrix.ffmpeg.lib_subdir }}" >> "$GITHUB_ENV"
|
||||||
- name: Install Rust stable with clippy and rustfmt
|
- name: Install Rust stable with clippy and rustfmt
|
||||||
@ -200,11 +195,6 @@ jobs:
|
|||||||
curl -L "https://sourceforge.net/projects/avbuild/files/linux/ffmpeg-7.1-linux-clang-lite.tar.xz/download" \
|
curl -L "https://sourceforge.net/projects/avbuild/files/linux/ffmpeg-7.1-linux-clang-lite.tar.xz/download" \
|
||||||
| tar xJf - --strip 1 -C ffmpeg-libs
|
| tar xJf - --strip 1 -C ffmpeg-libs
|
||||||
|
|
||||||
# https://github.com/wang-bin/avbuild/issues/76
|
|
||||||
PC_FILES=(ffmpeg-libs/lib/amd64/pkgconfig/*.pc)
|
|
||||||
sed -i 's/^prefix=.*$/prefix=${pcfiledir}\/..\/..\/../g' $PC_FILES
|
|
||||||
sed -i 's/^libdir=.*$/libdir=${prefix}\/lib\/amd64/g' $PC_FILES
|
|
||||||
|
|
||||||
echo "PKG_CONFIG_PATH=$PWD/ffmpeg-libs/lib/amd64/pkgconfig" >> "$GITHUB_ENV"
|
echo "PKG_CONFIG_PATH=$PWD/ffmpeg-libs/lib/amd64/pkgconfig" >> "$GITHUB_ENV"
|
||||||
echo "LD_LIBRARY_PATH=$PWD/ffmpeg-libs" >> "$GITHUB_ENV"
|
echo "LD_LIBRARY_PATH=$PWD/ffmpeg-libs" >> "$GITHUB_ENV"
|
||||||
# rust-version from Cargo.toml
|
# rust-version from Cargo.toml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user