Skip to content

Commit

Permalink
Format yml files (AOMediaCodec#2446)
Browse files Browse the repository at this point in the history
Using VSCode's Format Document feature.
  • Loading branch information
y-guyon authored Sep 26, 2024
1 parent 5789180 commit 1b1db68
Show file tree
Hide file tree
Showing 23 changed files with 745 additions and 752 deletions.
12 changes: 6 additions & 6 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: 'Cache for all OSes'
description: 'Needs to be called before any call to ext/.cmd|sh or cmake'
name: "Cache for all OSes"
description: "Needs to be called before any call to ext/.cmd|sh or cmake"
inputs:
extra-key:
description: 'Extra cache key to use in the cache name. Useful when several caches are used in one workflow.'
default: ''
description: "Extra cache key to use in the cache name. Useful when several caches are used in one workflow."
default: ""
use-meson:
description: 'Whether meson is used'
description: "Whether meson is used"
default: false
use-rust:
description: 'Whether rust is used'
description: "Whether rust is used"
default: false
outputs:
ext-cache-hit:
Expand Down
24 changes: 12 additions & 12 deletions .github/actions/setup-common/action.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: 'Common setup for all OSes'
description: 'Installs common dependencies'
name: "Common setup for all OSes"
description: "Installs common dependencies"
inputs:
codec-aom:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-dav1d:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-rav1e:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
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'
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@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.x'
python-version: "3.x"
- name: Set up CMake 3.13
if: ${{ runner.os == 'Linux' && inputs.oldest-cmake == 'true' }}
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2.0.2
with:
# Use the minimum required version of cmake.
cmake-version: '3.13.x'
cmake-version: "3.13.x"
- name: Print CMake version
run: cmake --version
shell: bash
Expand Down
61 changes: 27 additions & 34 deletions .github/actions/setup-linux/action.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: 'Setup on Linux'
description: 'Installs dependencies and sets env variables specific to Linux'
name: "Setup on Linux"
description: "Installs dependencies and sets env variables specific to Linux"
inputs:
codec-aom:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-dav1d:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
edfault: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
edfault: "OFF"
codec-rav1e:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
extra-cache-key:
description: 'Extra cache key to use in the cache name. Useful when several caches are used in one workflow.'
default: ''
description: "Extra cache key to use in the cache name. Useful when several caches are used in one workflow."
default: ""
gcc-version:
description: 'Can be empty, in which case CC and CXX are not overriden'
default: ''
description: "Can be empty, in which case CC and CXX are not overriden"
default: ""
gtest:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
libxml2:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
libyuv:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
oldest-cmake:
description: 'Can take the values: true, false'
default: 'false'
description: "Can take the values: true, false"
default: "false"
outputs:
ext-cache-hit:
value: ${{ steps.cache.outputs.ext-cache-hit }}
Expand All @@ -41,38 +41,31 @@ runs:
shell: bash
- name: Install libaom library
if: ${{ inputs.codec-aom == 'SYSTEM' }}
run:
sudo apt install -y libaom-dev
run: sudo apt install -y libaom-dev
shell: bash
- name: Install libdav1d library
if: ${{ inputs.codec-dav1d == 'SYSTEM' }}
run:
sudo apt install -y libdav1d-dev
run: sudo apt install -y libdav1d-dev
shell: bash
- name: Install rav1e library
if: ${{ inputs.codec-rav1e == 'SYSTEM' }}
run:
sudo apt install -y librav1e-dev
run: sudo apt install -y librav1e-dev
shell: bash
- name: Install libxml2 library
if: ${{ inputs.libxml2 == 'SYSTEM' }}
run:
sudo apt install -y libxml2
run: sudo apt install -y libxml2
shell: bash
- name: Install libyuv library
if: ${{ inputs.libyuv == 'SYSTEM' }}
run:
sudo apt install -y libyuv-dev
run: sudo apt install -y libyuv-dev
shell: bash
- name: Set up meson
if: ${{ inputs.codec-dav1d == 'LOCAL' }}
run:
sudo apt install -y meson
run: sudo apt install -y meson
shell: bash
- name: Set up gtest
if: ${{ inputs.gtest == 'SYSTEM' }}
run:
sudo apt install -y libgtest-dev
run: sudo apt install -y libgtest-dev
shell: bash

- uses: ./.github/actions/setup-common
Expand Down
24 changes: 12 additions & 12 deletions .github/actions/setup-macos/action.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: 'Setup on macOS'
description: 'Installs dependencies specific to macOS'
name: "Setup on macOS"
description: "Installs dependencies specific to macOS"
inputs:
codec-aom:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-dav1d:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-rav1e:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
gtest:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
extra-cache-key:
description: 'Extra cache key to use in the cache name. Useful when several caches are used in one workflow.'
default: ''
description: "Extra cache key to use in the cache name. Useful when several caches are used in one workflow."
default: ""
outputs:
ext-cache-hit:
value: ${{ steps.cache.outputs.ext-cache-hit }}
Expand Down
20 changes: 10 additions & 10 deletions .github/actions/setup-windows/action.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: 'Setup on Windows'
description: 'Installs dependencies specific to Windows'
name: "Setup on Windows"
description: "Installs dependencies specific to Windows"
inputs:
codec-aom:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-dav1d:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
codec-rav1e:
description: 'Can take the values: OFF, LOCAL, SYSTEM'
default: 'OFF'
description: "Can take the values: OFF, LOCAL, SYSTEM"
default: "OFF"
extra-cache-key:
description: 'Extra cache key to use in the cache name. Useful when several caches are used in one workflow.'
default: ''
description: "Extra cache key to use in the cache name. Useful when several caches are used in one workflow."
default: ""
outputs:
ext-cache-hit:
value: ${{ steps.cache.outputs.ext-cache-hit }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci-android-emulator-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
branches:
- main
paths:
- '.github/workflows/ci-android-emulator-tests.yml'
- 'android_jni/**'
- ".github/workflows/ci-android-emulator-tests.yml"
- "android_jni/**"
pull_request:
paths:
- '.github/workflows/ci-android-emulator-tests.yml'
- 'android_jni/**'
- ".github/workflows/ci-android-emulator-tests.yml"
- "android_jni/**"

permissions:
contents: read
Expand Down Expand Up @@ -44,14 +44,14 @@ jobs:
add-to-path: false
- uses: ./.github/actions/setup-linux
with:
codec-dav1d: 'LOCAL'
libyuv: 'LOCAL'
codec-dav1d: "LOCAL"
libyuv: "LOCAL"
oldest-cmake: true
- name: Setup JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
java-version: '17'
distribution: 'temurin'
java-version: "17"
distribution: "temurin"
- name: Run Instrumented Tests on the Emulator
uses: reactivecircus/android-emulator-runner@f0d1ed2dcad93c7479e8b2f2226c83af54494915 # v2.32.0
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-android-jni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ jobs:
add-to-path: false
- uses: ./.github/actions/setup-linux
with:
codec-aom: 'LOCAL'
codec-dav1d: 'LOCAL'
codec-aom: "LOCAL"
codec-dav1d: "LOCAL"
- name: Setup JDK
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
Expand Down
56 changes: 28 additions & 28 deletions .github/workflows/ci-disable-gtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
push:
pull_request:
paths:
- '.github/workflows/ci-disable-gtest.yml'
- '**CMakeLists.txt'
- 'cmake/**'
- 'ext/**'
- ".github/workflows/ci-disable-gtest.yml"
- "**CMakeLists.txt"
- "cmake/**"
- "ext/**"

permissions:
contents: read
Expand All @@ -35,28 +35,28 @@ jobs:
gcc: 14

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/setup-linux
with:
codec-aom: 'LOCAL'
codec-dav1d: 'LOCAL'
codec-rav1e: 'LOCAL'
gcc-version: ${{ matrix.gcc }}
libyuv: 'LOCAL'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: ./.github/actions/setup-linux
with:
codec-aom: "LOCAL"
codec-dav1d: "LOCAL"
codec-rav1e: "LOCAL"
gcc-version: ${{ matrix.gcc }}
libyuv: "LOCAL"

- name: Prepare libavif (cmake)
run: >
cmake -G Ninja -S . -B build
-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
-DAVIF_CODEC_AOM=LOCAL -DAVIF_CODEC_DAV1D=LOCAL
-DAVIF_CODEC_RAV1E=LOCAL -DAVIF_CODEC_SVT=LOCAL
-DAVIF_LIBYUV=LOCAL -DAVIF_LIBSHARPYUV=LOCAL
-DAVIF_BUILD_EXAMPLES=ON -DAVIF_BUILD_APPS=ON
-DAVIF_BUILD_TESTS=ON -DAVIF_ENABLE_GTEST=OFF
-DAVIF_ENABLE_WERROR=ON
- name: Build libavif (ninja)
working-directory: ./build
run: ninja
- name: Run AVIF Tests
working-directory: ./build
run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure
- name: Prepare libavif (cmake)
run: >
cmake -G Ninja -S . -B build
-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF
-DAVIF_CODEC_AOM=LOCAL -DAVIF_CODEC_DAV1D=LOCAL
-DAVIF_CODEC_RAV1E=LOCAL -DAVIF_CODEC_SVT=LOCAL
-DAVIF_LIBYUV=LOCAL -DAVIF_LIBSHARPYUV=LOCAL
-DAVIF_BUILD_EXAMPLES=ON -DAVIF_BUILD_APPS=ON
-DAVIF_BUILD_TESTS=ON -DAVIF_ENABLE_GTEST=OFF
-DAVIF_ENABLE_WERROR=ON
- name: Build libavif (ninja)
working-directory: ./build
run: ninja
- name: Run AVIF Tests
working-directory: ./build
run: ctest -j $(getconf _NPROCESSORS_ONLN) --output-on-failure
Loading

0 comments on commit 1b1db68

Please sign in to comment.