Skip to content

minivideo: add a few string helpers in minivideo_codecs.h #59

minivideo: add a few string helpers in minivideo_codecs.h

minivideo: add a few string helpers in minivideo_codecs.h #59

#-------------------------------------------------------------------------------
# Workflow configuration
#-------------------------------------------------------------------------------
name: "MiniVideo CI builds"
on:
push:
pull_request:
workflow_dispatch:
#-------------------------------------------------------------------------------
# Define application name & version
#-------------------------------------------------------------------------------
env:
APP_NAME: "MiniVideo"
APP_VERSION: "0.14"
#-------------------------------------------------------------------------------
# Workflow jobs
#-------------------------------------------------------------------------------
jobs:
## GNU/Linux build ###########################################################
build-linux:
name: "Linux CI build"
runs-on: ubuntu-20.04
steps:
# Checkout the repository
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
# Build library
- name: Build library
run: |
cd minivideo/build/
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build . --config Release
## macOS build ###############################################################
build-mac:
name: "macOS CI build"
runs-on: macos-12
steps:
# Checkout the repository
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
# Build library
- name: Build library
run: |
cd minivideo/build/
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build . --config Release
## Windows build #############################################################
build-windows:
name: "Windows CI build"
runs-on: windows-2022
steps:
# Checkout the repository
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
# Configure MSVC
- name: Configure MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x64
# Build library
- name: Build library
run: |
cd minivideo/build/
cmake --version
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build . --config Release