Work on CI builds #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# 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@v3 | |
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-11 | |
steps: | |
# Checkout the repository | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v3 | |
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@v3 | |
with: | |
submodules: recursive | |
# Configure MSVC | |
- name: Configure MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
spectre: true | |
# 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 |