mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
124 lines
4.1 KiB
YAML
124 lines
4.1 KiB
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
windows:
|
|
name: "Windows 64-bit"
|
|
strategy:
|
|
matrix:
|
|
runner: [ windows-2016, windows-2019 ]
|
|
include:
|
|
- runner: windows-2016
|
|
id: windows2017
|
|
windows_sdk: "10.0.17763.0"
|
|
cmake_generator: "Visual Studio 15 2017 Win64"
|
|
cmake_generator_platform: ""
|
|
- runner: windows-2019
|
|
id: windows2019
|
|
windows_sdk: "10.0.18362.0"
|
|
cmake_generator: "Visual Studio 16 2019"
|
|
cmake_generator_platform: "x64"
|
|
runs-on: ${{ matrix.runner }}
|
|
env:
|
|
CMAKE_GENERATOR: ${{ matrix.cmake_generator }}
|
|
CMAKE_GENERATOR_PLATFORM: ${{ matrix.cmake_generator_platform }}
|
|
CMAKE_GENERATOR_TOOLSET: "host=x64"
|
|
CMAKE_SYSTEM_VERSION: ${{ matrix.windows_sdk }}
|
|
steps:
|
|
- name: "Clone Repository"
|
|
uses: actions/checkout@v1
|
|
- name: "Clone Submodules"
|
|
shell: bash
|
|
run: git submodule update --init --recursive
|
|
- name: "Configure Project"
|
|
shell: bash
|
|
run: |
|
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
|
- name: "Build Project"
|
|
shell: bash
|
|
run: |
|
|
cmake --build "build/temp" --config RelWithDebInfo --target INSTALL
|
|
- name: "Package Project"
|
|
shell: bash
|
|
run: |
|
|
mkdir build/package
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
|
|
- name: "Package Installer (Prereqs)"
|
|
run: |
|
|
curl "-kL" "https://cdn.xaymar.com/ci/innosetup-6.0.3.exe" "-f" "--retry" "5" "-o" "inno.exe"
|
|
.\inno.exe /VERYSILENT /SP- /SUPPRESSMSGBOXES /NORESTART
|
|
- name: "Package Installer (Compile)"
|
|
run: |
|
|
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' /Qp ".\build\temp\installer.iss"
|
|
- name: "Upload Artifacts"
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: ${{ matrix.id }}
|
|
path: build/package
|
|
ubuntu:
|
|
name: "Linux/Ubuntu 64-bit"
|
|
strategy:
|
|
matrix:
|
|
runner: [ ubuntu-18.04, ubuntu-latest ]
|
|
include:
|
|
- runner: ubuntu-18.04
|
|
gcc: 8
|
|
id: ubuntu1804
|
|
- runner: ubuntu-latest
|
|
gcc: 9
|
|
id: ubuntu1910
|
|
runs-on: ${{ matrix.runner }}
|
|
env:
|
|
CMAKE_GENERATOR: "Ninja"
|
|
steps:
|
|
- name: "Clone Repository"
|
|
uses: actions/checkout@v1
|
|
- name: "Prerequisites: Submodules"
|
|
shell: bash
|
|
run: git submodule update --init --recursive
|
|
- name: "Prerequisites: Apt-Get"
|
|
shell: bash
|
|
run: |
|
|
sudo apt-get -qq update
|
|
sudo apt-get install \
|
|
build-essential \
|
|
gcc-${{ matrix.gcc }} \
|
|
g++-${{ matrix.gcc }} \
|
|
checkinstall \
|
|
cmake \
|
|
ninja-build \
|
|
git \
|
|
libavcodec-dev \
|
|
libavdevice-dev \
|
|
libavfilter-dev \
|
|
libavformat-dev \
|
|
libavutil-dev \
|
|
libswresample-dev \
|
|
libswscale-dev \
|
|
qtbase5-dev \
|
|
libqt5x11extras5-dev \
|
|
libqt5svg5-dev \
|
|
libgl1-mesa-dev \
|
|
pkg-config
|
|
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc }} 800 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc }}
|
|
- name: "Configure Project"
|
|
shell: bash
|
|
run: |
|
|
cmake -H. -B"build/temp" -DCMAKE_PACKAGE_NAME="streamfx-${{ matrix.id }}" -DCMAKE_INSTALL_PREFIX="build/distrib" -DCMAKE_PACKAGE_PREFIX="build/package" -DOBS_DOWNLOAD=ON
|
|
- name: "Build Project"
|
|
shell: bash
|
|
run: |
|
|
cmake --build "build/temp" --config RelWithDebInfo --target install
|
|
- name: "Package Project"
|
|
shell: bash
|
|
run: |
|
|
mkdir build/package
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_7Z
|
|
cmake --build "build/temp" --config RelWithDebInfo --target PACKAGE_ZIP
|
|
- name: "Upload Artifacts"
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: ${{ matrix.id }}
|
|
path: build/package
|