This action installs GStreamer by leveraging the release binaries for a specific version found here:
https://gstreamer.freedesktop.org/data/pkg/
Tested runner environments are macOS, Windows, and Ubuntu 20.04.
The version of GStreamer to install. The default is 1.22.0
The architecture (x86, x86_64, etc.) of binaries to install. Defaults to x86_64.
The URL from where to clone the gstreamer source (Linux targets only). Defaults to https://gitlab.freedesktop.org/gstreamer/gstreamer.git.
The installation path.
The GITHUB_PATH will be appended with the bin directory appended to gstreamerPath. This has the effect of appending the system path (e.g., PATH on macOS) so that the installed tools are accessible without specifying the full path to the executable.
WINDOWS ONLY: The GSTREAMER_1_0_ROOT_MSVC_<arch.to_upper()> variable will be set to the gstreamerPath.
In this example, it is a Windows environment and we want to set the GSTREAMER_... environment variables in a follow-on step. The first step runs the installation. The second step echoes the output variables from the previous step into variables that are then redirected into the GITHUB_ENV variable. If a next job were specified, it would have those variables set.
- name: Setup GStreamer
id: setup_gstreamer
uses: blinemedical/setup-gstreamer@1.0
with:
version: '1.19.90'
arch: 'x86'
- run: |
echo $env:GSTREAMER_1_0_ROOT_MSVC_X86
See the .github/workflows/test.yml for other examples.
References: