mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-04-15 04:14:07 +00:00
ci: Add bindgen-cli
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1706>
This commit is contained in:
parent
96ce95db9d
commit
b6e4e615d2
4 changed files with 28 additions and 3 deletions
|
@ -157,7 +157,7 @@ trigger:
|
|||
libpango1.0-dev libcairo2-dev libjson-glib-dev libgdk-pixbuf-2.0-dev
|
||||
libtiff-dev libpng-dev libjpeg-dev libepoxy-dev libsass-dev sassc
|
||||
libcsound64-dev llvm clang nasm libsodium-dev libwebp-dev
|
||||
libflac-dev libmysofa-dev libgtk-4-dev
|
||||
libflac-dev libmysofa-dev libgtk-4-dev libclang-dev
|
||||
FDO_DISTRIBUTION_EXEC: >-
|
||||
bash ci/install-gst.sh &&
|
||||
bash ci/install-dav1d.sh &&
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
variables:
|
||||
GST_RS_IMG_TAG: "2025-04-05.0"
|
||||
GST_RS_IMG_WINDOWS_TAG: "2025-04-05.0"
|
||||
GST_RS_IMG_TAG: "2025-04-07.0"
|
||||
GST_RS_IMG_WINDOWS_TAG: "2025-04-07.0"
|
||||
GST_RS_STABLE: "1.86.0"
|
||||
GST_RS_MSRV: "1.80.1"
|
||||
# The branch we use to build GStreamer from in the docker images
|
||||
|
|
|
@ -53,3 +53,6 @@ if [ "$RUST_VERSION" = "nightly" ]; then
|
|||
# Documentation tools
|
||||
cargo install --locked rustdoc-stripper
|
||||
fi
|
||||
|
||||
cargo install --locked bindgen-cli
|
||||
bindgen --version
|
||||
|
|
|
@ -30,3 +30,25 @@ if (!$?) {
|
|||
|
||||
cargo-cbuild --version
|
||||
cargo nextest --version
|
||||
|
||||
# Rust-based CLI unpacker
|
||||
cargo install --locked ouch
|
||||
if (!$?) {
|
||||
Write-Host "Failed to install ouch"
|
||||
Exit 1
|
||||
}
|
||||
|
||||
# libclang for bindgen-cli (x64)
|
||||
$libclang_url = 'https://gstreamer.freedesktop.org/data/src/mirror/libclang-20.1.2.tar.xz'
|
||||
Invoke-WebRequest -Uri $libclang_url -Outfile "$env:TEMP\libclang-20.1.2.tar.xz"
|
||||
ouch decompress -d $env:TEMP "$env:TEMP\libclang-20.1.2.tar.xz"
|
||||
cp "$env:TEMP\libclang-20.1.2\x64\bin\libclang.dll" "$env:USERPROFILE\.cargo\bin"
|
||||
Remove-Item -Recurse "$env:TEMP\libclang-20.1.2"
|
||||
Remove-Item "$env:TEMP\libclang-20.1.2.tar.xz"
|
||||
|
||||
cargo install --locked bindgen-cli
|
||||
if (!$?) {
|
||||
Write-Host "Failed to install bindgen"
|
||||
Exit 1
|
||||
}
|
||||
bindgen --version
|
||||
|
|
Loading…
Reference in a new issue