blob: 70cc7fa563ca99e0adf2fb550116adaa5aa2e935 [file] [log] [blame]
name: "Common setup for all OSes"
description: "Installs common dependencies"
inputs:
codec-aom:
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-dav1d:
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-rav1e:
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-svt:
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
oldest-cmake:
description: "Can take the values: true, false. Only useful on Linux to force using the minimum required CMake"
default: "false"
runs:
using: "composite"
steps:
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"
- name: Set up latest CMake
if: ${{ runner.os != 'Linux' || inputs.oldest-cmake != 'true' }}
uses: jwlawson/actions-setup-cmake@3a6cbe35ba64df7ca70c51365c4aff65db9a9037 # v2.1.1
with:
cmake-version: "latest"
- name: Set up CMake 3.22
if: ${{ runner.os == 'Linux' && inputs.oldest-cmake == 'true' }}
uses: jwlawson/actions-setup-cmake@3a6cbe35ba64df7ca70c51365c4aff65db9a9037 # v2.1.1
with:
# Use the minimum required version of cmake.
cmake-version: "3.22.x"
- name: Print CMake version
run: cmake --version
shell: bash
- name: Set up rust
if: ${{ inputs.codec-rav1e == 'LOCAL' }}
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: stable
- name: Set up cargo-c
if: ${{ inputs.codec-rav1e == 'LOCAL' }}
run: cargo install cargo-c --features=vendored-openssl
shell: pwsh