Skip to content

everycastlabs/setup-gstreamer

 
 

Repository files navigation

Install GStreamer GitHub Action

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.

Inputs

version

The version of GStreamer to install. The default is 1.22.0

arch

The architecture (x86, x86_64, etc.) of binaries to install. Defaults to x86_64.

repoUrl

The URL from where to clone the gstreamer source (Linux targets only). Defaults to https://gitlab.freedesktop.org/gstreamer/gstreamer.git.

Outputs

gstreamerPath

The installation path.

Environment

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.

Example Usage

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/[email protected]
  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:

About

GitHub Action for installing GStreamer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%